Commit Graph
13 Commits
Author SHA1 Message Date
Atsushi Eno 4fab2dc4c3 Fix bug #703910 - implement Order support in XmlSerializer. 2011-07-21 04:57:32 +09:00
Atsushi Eno 1770b033b6 2010-03-10 Atsushi Enomoto <[email protected]>
* XmlAnyElementAttribute.cs : add internal IsNullableSpecified
	  (for moonlight compatibility).
	* XmlChoiceIdentifierAttribute.cs : implement MemberInfo (ditto).


svn path=/trunk/mcs/; revision=153394
2010-03-10 10:32:21 +00:00
Atsushi Eno ed25b28b95 2009-03-13 Atsushi Enomoto <[email protected]>
* XmlArrayItemAttribute.cs, XmlElementAttribute.cs,
	  XmlAnyElementAttribute.cs : added more 2.1 obstacles.


svn path=/trunk/mcs/; revision=129247
2009-03-13 07:28:04 +00:00
Marek Safar 95a6e77b85 Warnings cleanup
svn path=/trunk/mcs/; revision=111839
2008-08-28 16:53:31 +00:00
Atsushi Eno 803b5ed83b 2006-11-01 Atsushi Enomoto <[email protected]>
* CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
	  [Serializable].
	* XmlSerializationCollectionFixupCallback.cs,
	  XmlNodeEventHandler.cs,
	  XmlSerializationReadCallback.cs,
	  UnreferencedObjectEventHandler.cs,
	  XmlSerializationWriteCallback.cs,
	  XmlAttributeEventHandler.cs,
	  XmlElementEventHandler.cs,
	  XmlSerializationFixupCallback.cs :
	  exclude [Serializable] in NET_2_0.
	* XmlSerializerNamespaces.cs : removed beta-only AddInternal().
	* XmlSerializerVersionAttribute.cs : removed [Obsolete].
	* XmlMappingAccess.cs : it is [Flags].
	* SchemaImporter.cs : implement Extensions.
	* XmlAnyElementAttribute.cs,
	  XmlArrayAttribute.cs : added Order.
	  Note that it is not considered in XmlSerializer yet.


svn path=/branches/atsushi/mcs/; revision=67228
2006-11-01 19:45:33 +00:00
Gert Driesen 3fb3755546 * ComplexDataStructure.cs: Fixed test due to change in default value
of XmlArrayItemAttribute.IsNullable.
* SoapAttributeAttributeTests.cs: Added tests for default values.
* SoapElementAttributeTests.cs: Added tests for default values.
* SoapEnumAttributeTests.cs: Added tests for default values.
* SoapIncludeAttributeTests.cs: Added tests for default values.
* SoapSchemaMemberTests.cs: Added tests for default values.
* SoapTypeAttributeTests.cs: Added tests for default values.
* XmlAnyElementAttributeTests.cs: Added tests for default values.
* XmlArrayAttributeTests.cs: Added tests for default values.
* XmlArrayItemAttributeTests.cs: Added tests for default values.
* XmlAttributeAttributeTests.cs: Added tests for default values.
* XmlChoiceIdentifierAttributeTests.cs: Added tests for default values.
* XmlElementAttributeTests.cs: Added tests for default values.
* XmlEnumAttributeTests.cs: Added tests for default values.
* XmlIncludeAttributeTests.cs: Added tests for default values.
* XmlRootAttributeTests.cs: Added tests for default values.
* XmlTextAttributeTests.cs: Added tests for default values.
* XmlTypeAttributeTests.cs: Added tests for default values.
* System.Xml_test.dll.sources: Added tests for default values of Xml 
Serialization attribute classes.
* SoapAttributeAttribute.cs: Return zero-length string if AttributeName or
DataType are null.
* SoapEnumAttribute.cs: Return zero-length string if Name is null.
* SoapIncludeAttribute.cs: Avoid using property in ctor.
* SoapSchemaMember.cs: Return zero-length string if MemberName is
null. MemberType should be XmlQualifiedName.Empty by default.
* SoapTypeAttribute.cs: Return zero-length string if TypeName is
null. Avoid using property in ctor.
* XmlArrayAttribute.cs: Return zero-length string if ElementName is
null. Avoid using property in ctor.
* XmlArrayItemAttribute.cs: IsNullable must be false by default.
Return zero-length string if DataType or ElementName are null. Avoid
using property in ctor.
* SoapElementAttribute.cs: Return zero-length string when DataType
or ElementName are null. Avoid using property in ctor.
* XmlAnyElementAttribute.cs: Return zero-length string when Name is
null. Avoid using property in ctor.
* XmlAttributeAttribute.cs: Avoid using property in ctor. Return
zero-length string if AttributeName or DataType are null.
* XmlChoiceIdentifierAttribute.cs: Return zero-length string when
MemberName is null.
* XmlElementAttribute.cs: Return zero-length string when DataType or
ElementName are null. Avoid using property in ctor.
* XmlEnumAttribute.cs: Avoid using property in ctor.
* XmlIncludeAttribute.cs: Avoid using property in ctor.
* XmlReflectionImporter.cs: AttributeName, ElementName and DataType
can no longer be null. Use check for zero-length string to determine
whether they are set. Corrected exception message when DataType is
set for complex type.
* XmlRootAttribute.cs: Return zero-length string if DataType or
ElementName are null. Avoid using property in ctor.
* XmlTextAttribute.cs: Return zero-length string if DataType is null.
* XmlTypeAttribute.cs: Return zero-length string if TypeName is null.

svn path=/trunk/mcs/; revision=47896
2005-08-01 18:45:29 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Lluis Sanchez ef6734e55d * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
Use a special method to generate default values, since default enum values
	  will come as integers, so a special cast is needed.
	* XmlSerializationReaderInterpreter.cs,
	* SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
	  SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
	  SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
	  XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
	  XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
	  XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
	  XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
	  XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
	  of SerializationSource. It can't keep and use the XmlAttributeOverride
	  instances as key values, since those instances can be modified after the
	  xml map has been generated. Now, SerializationSource generates a unique
	  string hash from XmlAttributeOverride and uses it for comparisons.

svn path=/trunk/mcs/; revision=24553
2004-03-25 00:07:43 +00:00
Lluis Sanchez 95d2d48bb3 * SerializationCodeGenerator.cs: Added support for generation of readers
and writers for several maps in a single class. Added support for
	  XmlMemberMapping. Fixed generation of serializers that use encoded format.
	* SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
	  SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
	  XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
	  XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
	  XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
	  XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
	  XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
	  Added InternalEquals method.
	* XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
	* SoapReflectionImporter.cs: Set SerializationSource to generated maps.
	* XmlCustomFormatter.cs: Fixed little bug.
	* XmlMapping.cs: Added Source property. This a global identifier of the map.
	* XmlReflectionImporter.cs: Set SerializationSource to generated maps.
	* XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
	  mapping members.
	* XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
	* XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
	  correctly used.
	* XmlSerializer.cs: Added support for generation of serializers.

svn path=/trunk/mcs/; revision=23392
2004-02-24 12:03:28 +00:00
Lluis Sanchez 2abcd5c4c8 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
* XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
	  XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
	  XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
	* XmlSerializationWriter.cs: small fix.

svn path=/trunk/mcs/; revision=15350
2003-06-12 19:34:16 +00:00
Gonzalo Paniagua Javier aa0acdf4b2 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
* XmlSerializationReader.cs: implemented a few methods.

	* XmlAnyElementAttribute.cs:
	* XmlArrayAttribute.cs:
	* XmlChoiceIdentifierAttribute.cs:
	* XmlElementAttribute.cs:
	* XmlMemberMapping.cs:
	* XmlMembersMapping.cs: class status based fixes.

svn path=/trunk/mcs/; revision=7578
2002-09-18 07:43:41 +00:00
Ajay kumar Dwivedi 3a5acc4f4c 2002-06-27 Ajay kumar Dwivedi <[email protected]>
* XmlSerializer: Serialize() method Partially Implemented.

svn path=/trunk/mcs/; revision=5478
2002-06-27 10:36:28 +00:00
John Donagher f6ae3d98b1 - Initial commit of System.Xml.Serialization namespace (don't get too excited, the Serializer itself has yet to be imp'd)
svn path=/trunk/mcs/; revision=3625
2002-04-05 04:46:53 +00:00