505 Commits
Author SHA1 Message Date
Konstantin Triger 6433ebf5d9 remove local name encoding for enums
svn path=/trunk/mcs/; revision=56610
2006-02-07 08:45:54 +00:00
Gert Driesen 0cb6273e10 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
svn path=/trunk/mcs/; revision=55210
2006-01-08 17:24:07 +00:00
Gert Driesen 8780748ecb * TypeTranslator.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=55193
2006-01-07 19:04:55 +00:00
Gert Driesen b542b7a6ea * XmlTypeMapping.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=55192
2006-01-07 18:55:35 +00:00
Lluis Sanchez eee1751b77 2005-12-07 Lluis Sanchez Gual <[email protected]>
* XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
	collection, don't create a new collection if the property already has a 
	collection instance.
	* SerializationCodeGenerator.cs: same as above. Also return an empty
	string for flag enum default values.


svn path=/trunk/mcs/; revision=54043
2005-12-07 15:42:54 +00:00
Konstantin Triger bf50affc18 TARGET_JVM: save additional types per AppDomain
svn path=/trunk/mcs/; revision=53986
2005-12-06 15:15:44 +00:00
Lluis Sanchez 6074454762 2005-12-05 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTestClasses.cs:
	* DeserializeTests.cs: Added tests for bug #76808 and related behavior.

2005-12-05  Lluis Sanchez Gual  <[email protected]>

	* XmlSerializationReaderInterpreter.cs:
	* SerializationCodeGenerator.cs: When deserializing a collection,
	don't create a new collection if the property already has a 
	collection instance. This does not apply to arrays. Changed how nullabe
	array properties are set. Setting IsNullable=false to the property means
	that it won't be set if the read array is null (so, if the property
	already has a value, it will be kept).
	Another change is that can't never be null (only arrays can).


svn path=/trunk/mcs/; revision=53949
2005-12-05 20:44:42 +00:00
Lluis Sanchez 1e8f13ce21 2005-12-01 Lluis Sanchez Gual <[email protected]>
* TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
	a cli array type, consider it refering to the type of array elements.
	This fixes bug #76860. Also added some locking.


svn path=/trunk/mcs/; revision=53760
2005-12-01 12:21:08 +00:00
Konstantin Triger 14fa53e70c correctly export non-xsd primitive types.
svn path=/trunk/mcs/; revision=53522
2005-11-27 08:21:31 +00:00
Vladimir Krasnov cf50bd21d7 * XmlTypeMapping.cs: fixed GetXmlName method, added difference of value serialization of flags and non-flags enums
* XmlSerializerTestClasses.cs: added two enum types, without 0-value
* XmlSerializerTests.cs: added tests for serialization enum's default value


svn path=/trunk/mcs/; revision=53451
2005-11-24 13:42:27 +00:00
Konstantin Triger 52b336cfc8 do not import empty namespaces.
svn path=/trunk/mcs/; revision=53393
2005-11-23 12:53:57 +00:00
Vladimir Krasnov aed870ac2f XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement method, ReadEndElement should check XmlNodeType.
XmlTypeMapping.cs: fixed GetXmlName method, it should not write zero as default enum value.

svn path=/trunk/mcs/; revision=53181
2005-11-17 15:09:06 +00:00
Vladimir Krasnov ac47dcb52c XmlReflectionImporter.cs: fixed field order returned by
reflection in method GetReflectionMembers. TARGET_JVM only.

svn path=/trunk/mcs/; revision=53100
2005-11-16 09:30:02 +00:00
Lluis Sanchez aa0acf396e 2005-11-07 Lluis Sanchez Gual <[email protected]>
* XmlSchemaImporter.cs: Added support for restrictions with
	embedded simple type definitions. 


svn path=/trunk/mcs/; revision=52648
2005-11-07 12:30:02 +00:00
Atsushi Eno 65b716988e 2005-11-04 Atsushi Enomoto <[email protected]>
* XmlElementAttribute.cs : gimme Order; it fixes 100 or more
	  sys.xml.schema corcompare diffs.


svn path=/trunk/mcs/; revision=52557
2005-11-04 08:36:27 +00:00
Lluis Sanchez 814b15d6b0 2005-10-17 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: 
	* XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
	need to be all XmlElments. Fix by Atsushi for bug #76288.


svn path=/trunk/mcs/; revision=51795
2005-10-17 10:39:40 +00:00
Lluis Sanchez 05ddc568ab 2005-09-26 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added ChoiceMember to ListMap.
	In ListMap.FindElement, take into account the ChoiceMember
	if set.
	* SerializationCodeGenerator.cs:
	* XmlSerializationReaderInterpreter.cs: For lists with a choice
	member, fill the member with the corresponding enum values.
	* XmlReflectionImporter.cs: Properly reflect the choice member
	when applied to a list.
	* XmlSerializationWriterInterpreter.cs: Track class changes.
	* XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
	All this fixes bug #76203.


svn path=/trunk/mcs/; revision=50779
2005-09-26 15:40:46 +00:00
Lluis Sanchez 68b9131005 2005-09-21 Lluis Sanchez Gual <[email protected]>
* SoapReflectionImporter.cs: Check the correct defaults
	for attributes.


svn path=/trunk/mcs/; revision=50394
2005-09-21 17:32:12 +00:00
Lluis Sanchez ec9fda635c 2005-09-21 Lluis Sanchez Gual <[email protected]>
* SerializationSource.cs: Fix nullref.
	* XmlReflectionImporter.cs: When registering a type using
	IncludeType(), make sure it is added as a subtype and the
	map for typeof(object) if it has already been imported.
	Fixes bug #76049.


svn path=/trunk/mcs/; revision=50379
2005-09-21 15:51:01 +00:00
Lluis Sanchez fdc236d965 2005-09-21 Lluis Sanchez Gual <[email protected]>
* XmlSerializationWriter.cs: Also internally serialize
	arrays of object (see previous change).


svn path=/trunk/mcs/; revision=50375
2005-09-21 14:07:20 +00:00
Lluis Sanchez 86a817047b 2005-09-21 Lluis Sanchez Gual <[email protected]>
* XmlSerializationWriter.cs: Properly serialize arrays
	of primitive types when not explicitely specified in
	a container class. Based on a patch by Konstantin Triger.
	Fixes bug #75986. 


svn path=/trunk/mcs/; revision=50371
2005-09-21 12:55:58 +00:00
Lluis Sanchez 427c682fdd 2005-08-24 Lluis Sanchez Gual <[email protected]>
* TypeData.cs: Reset the hasPublicConstructor flag when the
	type is an interface.
	* XmlSerializationWriterInterpreter.cs: Get the Count property
	from the object type instead of the property type (it didn't
	work for IList). 
	* ReflectionHelper.cs: In CheckSerializableType, don't trow
	if the type is a collection interface. All this fixes
	bug #75855.


svn path=/trunk/mcs/; revision=48799
2005-08-24 17:55:22 +00:00
Lluis Sanchez a61063e3dc 2005-08-06 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added null check.


svn path=/trunk/mcs/; revision=48058
2005-08-06 12:01:13 +00:00
Lluis Sanchez 2edbc72ff5 2005-08-05 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added ListMembers property that returns
	members which are collections.
	* SerializationCodeGenerator.cs:
	* XmlSerializationReaderInterpreter.cs: Initialize collection
	members to an empty collection by default. Fixes bug #75662.


svn path=/trunk/mcs/; revision=48037
2005-08-05 11:43:30 +00:00
Gert Driesen b6157808b4 * XmlSchemaInference.cs: Is sealed in Beta 2.
* XmlSchemaInfo.cs: Added ContentType property.
* XmlSchemaObjectEnumerator.cs: No longer sealed in Beta 2.
* XmlSchemaSet.cs: No longer sealed in Beta 2. XmlResolver property
is now CLSCompliant.
* XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
* XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to RoundtripKind 
to match .NET 2.0 Beta 2.
* XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2, and is explicit interface implementation.
* XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlValidatingReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlNamespaceManager.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic IDictionary in 
.NET 2.0 Beta 2.
* DTDValidatingReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XsltArgumentList.cs: No longer sealed in .NET 2.0.
* XsltException.cs: Message override is back in .NET 2.0 Beta 2.
* XmlMapping.cs: API compatibility fixes. Ctor is not protected in .NET 1.1. 
SetKey is not obsolete in .NET 2.0 Beta 2.
* XPathNavigator.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XsdValidationReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlSchemaValidatingReader.cs: GetNamespacesInScope returns generic
IDictionary in .NET 2.0 Beta 2.
* SubtreeXmlReader.cs: GetNamespacesInScope now returns generic IDictionary.

svn path=/trunk/mcs/; revision=47974
2005-08-03 17:39:08 +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
Lluis Sanchez cd403b28dc 2005-07-14 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: In the generated serializer always
	use the Object equality operator when comparing objects to serialize
	to null, since those objects may have the equality operator
	overloaded. This fixes bug #75543.


svn path=/trunk/mcs/; revision=47296
2005-07-14 09:38:31 +00:00
Lluis Sanchez 3229b25fc8 2005-07-01 Lluis Sanchez Gual <[email protected]>
* XmlCustomFormatter.cs: Properly read/write duration values.


svn path=/trunk/mcs/; revision=46853
2005-07-01 18:41:37 +00:00
Lluis Sanchez 1adae42f73 2005-06-28 Lluis Sanchez Gual <[email protected]>
* XmlSerializer.cs: Fix race between XmlSerializer and the
	serializer generator.


svn path=/trunk/mcs/; revision=46655
2005-06-28 16:20:50 +00:00
Ben Maurer 7ee4149d42 more executable bits
svn path=/trunk/mcs/; revision=46568
2005-06-27 16:07:43 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Lluis Sanchez f4b6e37e35 2005-06-14 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapElementInfo.cs: Added new DataTypeName property for
	getting the real xml type name of a member.
	* XmlSerializationWriterInterpreter.cs: Use that new property
	to get the type name of primitive types. This should fix bug #75180.


svn path=/trunk/mcs/; revision=45943
2005-06-14 10:16:40 +00:00
Lluis Sanchez d8dc07c3f5 2005-06-07 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: When reading members by order,
	call a MoveToContext after each member read. In the fixup method
	don't cast returned values if it is reading an object array.
	
	* XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
	being imported is a primitive type, create a wrapper class that
	inherits from the provided one. This fixes bug #68809.
	
	* XmlSerializationReader.cs: Properly report unreferenced objects.
	Created an overload of ReadTypedPrimitive that reports elements of
	unknown type. Implemented Referenced(). 


svn path=/trunk/mcs/; revision=45586
2005-06-07 16:55:01 +00:00
Lluis Sanchez 2f9d43d810 2005-05-30 Lluis Sanchez Gual <[email protected]>
* XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
	set to the default namespace. This fixes bug #73035.


svn path=/trunk/mcs/; revision=45186
2005-05-30 09:50:08 +00:00
Lluis Sanchez b8397d298d 2005-05-12 Lluis Sanchez Gual <[email protected]>
* SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
	types indirectly imported by this method use the same namespace. 


svn path=/trunk/mcs/; revision=44439
2005-05-12 13:54:29 +00:00
Raja R Harinath 5948e16f26 svn:eol-style=native
svn path=/trunk/mcs/; revision=44323
2005-05-10 09:39:16 +00:00
Atsushi Eno a6c63b3071 2005-05-09 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : removed obsolete TypeTableEntry.cs.

	* TypeTableEntry.cs : removed obsolete code.


svn path=/trunk/mcs/; revision=44238
2005-05-09 05:23:00 +00:00
Lluis Sanchez 698caea6d0 2005-04-26 Lluis Sanchez Gual <[email protected]>
* XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
	properties which are read only. Fixes bug #74723.


svn path=/trunk/mcs/; revision=43584
2005-04-26 09:20:34 +00:00
Lluis Sanchez db84bb61d5 2005-04-14 Lluis Sanchez Gual <[email protected]>
* XmlReflectionImporter.cs:
	* SoapReflectionImporter.cs:
	* TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
	where needed. Based on a patch by Konstantin Triger. 

svn path=/trunk/mcs/; revision=43003
2005-04-14 14:22:55 +00:00
Lluis Sanchez ce518937f0 Reverting invalid patch.
svn path=/trunk/mcs/; revision=42993
2005-04-14 10:46:13 +00:00
Andrew Skiba b89b895ffd Call XmlConvert.EncodeLocalName where needed
svn path=/trunk/mcs/; revision=42986
2005-04-14 06:41:10 +00:00
Lluis Sanchez e394f2ee4c 2005-04-12 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added new XmlSerializableMapping class.
	* XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
	export the schema that it defines. In ImportNamespace, removed
	check for default namespace, since it may be included from a non
	default namespace.
	* XmlReflectionImporter.cs: Create a special map for IXmlSerializable
	types. All this based on a patch by Andrew Skiba.
	
	* SerializationCodeGenerator.cs:
	* XmlMapping.cs:
	* XmlSerializationReaderInterpreter.cs:
	* SoapCodeExporter.cs:
	* XmlTypeMapMemberAttribute.cs:
	* XmlSerializationReader.cs:
	* XmlCodeExporter.cs: Fixed some warnings.

2005-04-10  Andrew Skiba  <[email protected]>

2005-04-03  Andrew Skiba  <[email protected]>

svn path=/trunk/mcs/; revision=42841
2005-04-12 16:34:24 +00:00
Andrew Skiba d2d0b0ff38 XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition
svn path=/trunk/mcs/; revision=42752
2005-04-10 08:41:26 +00:00
Andrew Skiba 19090b83f8 XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly code generation.
svn path=/trunk/mcs/; revision=42625
2005-04-07 07:57:15 +00:00
Lluis Sanchez e4bc62c60c 2005-03-30 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: 
	* XmlSerializationReaderInterpreter.cs: If the element being read is
	bound to a choice member, set the corresponding value.
	* XmlTypeMapMember.cs: Added helper SetValue method.
	* XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
	since now stores the enum value.
	* XmlReflectionImporter.cs: Properly import choice values.
	* XmlTypeMapMemberElement.cs: Added setter for the choice.


svn path=/trunk/mcs/; revision=42416
2005-03-31 08:38:38 +00:00
Lluis Sanchez a3fc0d1cd0 2005-03-29 Lluis Sanchez Gual <[email protected]>
* XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
	This fixes bug #73901 and should fix #70384.
	* XmlSerializationReader.cs: When reading an object element, return
	an Object instance if the element has no children. This fixes bug #73974.
	* XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
	type (it is written as an element with those nodes as children). 


svn path=/trunk/mcs/; revision=42328
2005-03-29 11:41:57 +00:00
Lluis Sanchez 61e5228375 2005-03-08 Lluis Sanchez Gual <[email protected]>
* XmlSchemaImporter.cs: Support importing schemas that define
	extra types in the standard xml schema namespace. When using encoded
	format, support the primitive types defined by the SOAP encoding
	namespace.


svn path=/trunk/mcs/; revision=41562
2005-03-08 11:58:25 +00:00
Lluis Sanchez b48885d877 2005-03-04 Lluis Sanchez Gual <[email protected]>
* ReflectionHelper.cs: Avoid endless loop.
	* XmlSchemas.cs: Added null check. Patches from MainSoft.


svn path=/trunk/mcs/; revision=41458
2005-03-04 18:13:03 +00:00
Lluis Sanchez c425dff131 2005-02-07 Lluis Sanchez Gual <[email protected]>
* XmlSerializationReader.cs: After reading an href element, skip the
	whole element (it may not be an empty element). This fixes bug #72265.


svn path=/trunk/mcs/; revision=40255
2005-02-07 17:46:23 +00:00