8 Commits
Author SHA1 Message Date
Atsushi Eno 112c1993e5 eol-style:native
svn path=/trunk/mcs/; revision=67475
2006-11-07 18:19:47 +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 4160809c3b * MapCodeGenerator.cs: Added helper method for generating an attribute
parameter of type enum.
	* XmlAttributeAttribute.cs: little fix.
	* XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
	  for method parameters.
	* XmlMemberMapping.cs: Improved support for members of type "any".
	* XmlReflectionImporter.cs: Improved assignment of the attribute form.
	  If the namespace is explicitly specified, then the form should be
	  qualified. Also fixed issues with the namespace assigned to attributes.
	  This should fix bug #53384.
	* XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
	  methods that return values of type "any". Changed the methods
	  AddSchemaArrayElement and AddSchemaElement, so instead of adding the
	  element, return it, and the caller must add it to the collection.
	  Other fixes in attribute generation.
	* XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
	  generate the AnyType mapping from the type described in the schema.
	  Small fixes regarding IsMixed property of complex types (it means that
	  the type can contain text, so the XmlTextAttribute must be generated).
	* XmlSerializationReaderInterpreter.cs: Reading of members by-order must
	  be only used in the bare+encoded format.

svn path=/trunk/mcs/; revision=22533
2004-01-27 12:43:22 +00:00
Ajay kumar Dwivedi 55785e37e3 2002-06-20 Ajay kumar Dwivedi <[email protected]>
* Soap & XmlOverrides: Implemented using TypeMember as key with
	  suggestions from Rafael.

svn path=/trunk/mcs/; revision=5356
2002-06-20 06:26:07 +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