Commit Graph
9 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
David Sheldon 394b959b9d 2004-03-13 David Sheldon <[email protected]>
* XmlTextAttribute.cs: Initialise dataType with zero-length string.
   fixes test case that tests for this directly
   (XmlAttributesTests/XmlTextAttribute).
  * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
   it. Treat it as null.

svn path=/trunk/mcs/; revision=23970
2004-03-13 01:25:59 +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
Gonzalo Paniagua Javier 6918735598 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
* System.Xml/XmlDocument.cs:
	* System.Xml/XmlTextWriter.cs:
	* System.Xml/XmlValidatingReader.cs:
	* System.Xml.Schema/XmlSchemaCollection.cs:
	* System.Xml.Schema/XmlSchemaException.cs:
	* System.Xml.Schema/XmlSchemaObjectCollection.cs:
	* System.Xml.Serialization/SoapTypeAttribute.cs:
	* System.Xml.Serialization/XmlAttributes.cs:
	* System.Xml.Serialization/XmlMapping.cs:
	* System.Xml.Serialization/XmlReflectionImporter.cs:
	* System.Xml.Serialization/XmlSerializer.cs:
	* System.Xml.Serialization/XmlTextAttribute.cs:
	* System.Xml.Xsl/XslTransform.cs: misc. fixed and implementation.

	* System.Xml.Serialization/SchemaTypes.cs: New file.
	* System.Xml.Serialization/TypeData.cs: New file.
	* System.Xml.Serialization/TypeTranslator.cs: New file.

svn path=/trunk/mcs/; revision=7574
2002-09-18 05:21:10 +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