Commit Graph
232 Commits
Author SHA1 Message Date
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
Lluis Sanchez 2e99fadc7f 2005-01-25 Lluis Sanchez Gual <[email protected]>
* XmlSchemaImporter.cs: When importing a default value of type enum,
	translate it from the schema value to the clr value.


svn path=/trunk/mcs/; revision=39515
2005-01-25 17:39:38 +00:00
Gonzalo Paniagua Javier 62efe62af7 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
* XmlSerializer.cs: only print the results if there's an error
	compiling.


svn path=/trunk/mcs/; revision=39119
2005-01-18 21:45:08 +00:00
Gonzalo Paniagua Javier c30ed27de6 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
* SerializationCodeGenerator.cs: don't use _config if it has not been
	assigned.


svn path=/trunk/mcs/; revision=39115
2005-01-18 19:55:03 +00:00
Lluis Sanchez b8ac4113df 2005-01-18 Lluis Sanchez Gual <[email protected]>
* XmlReflectionImporter.cs: Don't check the property type if it has
	an [XmlIgnore] attribute. This fixes bug #71332.


svn path=/trunk/mcs/; revision=39088
2005-01-18 12:44:23 +00:00
Atsushi Eno 303719101a 2005-01-14 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializationWriterInterpreter.cs : exchanged attribute
	  serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
	  xmlns attributes in XmlAnyAttribute are not written.



svn path=/trunk/mcs/; revision=38944
2005-01-14 16:47:43 +00:00
Atsushi Eno 566fcb9be5 2005-01-12 Atsushi Enomoto <[email protected]>
* SerializationCodeGeneratorConfiguration.cs,
	  SerializationCodeGenerator.cs : Added some generation configuration:
		<generateAsInternal>
			write custom reader/writer as internal classes.
		<noreader>, <nowriter>
			They make generation of reader and/or writer optional.
	* XmlSerializerNamespaces.cs :
	  Now it uses ListDictionary instead of Hashtable.
	* XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
	  written unless there is already the same prefix-ns mapping.



svn path=/trunk/mcs/; revision=38760
2005-01-12 04:33:28 +00:00
Lluis Sanchez 4564ef55fd 2005-01-12 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
	* XmlSchemaImporter.cs: When importing a base type of a complex type,
	make sure that the base class is always imported as a class and not
	as an array. If it has been imported as array, import it again.
	This fixes bug #70839. Other minor fixes as well.
	* XmlSerializationWriter.cs: Fixed warning.


svn path=/trunk/mcs/; revision=38750
2005-01-12 00:55:05 +00:00
Lluis Sanchez 34bea03c3a 2004-12-09 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Yet another generation fix.


svn path=/trunk/mcs/; revision=37523
2004-12-09 21:05:31 +00:00
Lluis Sanchez e1614ad603 2004-12-09 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Fixed generation of enum literals.


svn path=/trunk/mcs/; revision=37487
2004-12-09 13:57:10 +00:00
Lluis Sanchez cd602dc5ce 2004-12-09 Lluis Sanchez Gual <[email protected]>
* XmlReflectionMember.cs: Added DeclaringType member.
	* XmlReflectionImporter.cs: When importing fields that belong to a
	base class, use the xml namespace of the base map for the member.
	This fixes bug #70309.


svn path=/trunk/mcs/; revision=37475
2004-12-09 10:38:49 +00:00
Lluis Sanchez efb43a36d5 2004-11-30 Lluis Sanchez Gual <[email protected]>
* XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
	compilation warnings.


svn path=/trunk/mcs/; revision=36831
2004-11-30 09:02:13 +00:00
Lluis Sanchez 212bcb99fe 2004-11-24 Lluis Sanchez Gual <[email protected]>
* SerializationSource.cs: Made SerializationSource abstract, and
	renamed Equals to BaseEquals to avoid missing GetHashCode warning
	(it does not really make sense in this case).
	* XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
	XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
	XmlSerializationReader.cs: Fixed warnings.


svn path=/trunk/mcs/; revision=36462
2004-11-24 09:52:05 +00:00
Atsushi Eno db97ee020e 2004-10-19 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : When namespace is an empty string,
	  XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
	  such case.

svn path=/trunk/mcs/; revision=35146
2004-10-19 22:10:37 +00:00
Lluis Sanchez 3a465797dc * MapCodeGenerator.cs: When the Object type is exported, export all
derived maps. This was done in IncludeMetadata, but this method is
	  not called by the xsd tool.
	* XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
	  attribute for primitive types and arrays.
	* XmlSchemaImporter.cs: Only export all object-derived maps if the
	  Object type is explicitly referenced by an element.
	* XmlSerializationWriter.cs: Minor fix.

svn path=/trunk/mcs/; revision=34573
2004-09-30 20:56:52 +00:00
Lluis Sanchez 8bc4bccc0f * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
This fixes bug #66877.

svn path=/trunk/mcs/; revision=34470
2004-09-28 09:22:52 +00:00
Lluis Sanchez 652840c106 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
when reading a primitive value in encoded format using
	  ReadReferencingElement, provide the type name and namespace
	  since the xsi type may not be present in the xml element. This
	  fixes bug #65929.

svn path=/trunk/mcs/; revision=34157
2004-09-21 09:59:17 +00:00
Lluis Sanchez 2929822a90 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
	* XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
	  ImportIncludedTypes to the end, to make sure that the current map has all
	  needed data before derived maps are constructed.
	* XmlSchemaExporter.cs: Generate the base class of simple types that are
	  not primitive types. Set the correct value for IsMixed in extended types.
	* XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
	  the base class of a simple type doesn't need to be a xsd type.
	  All those patches fix bug #65654

svn path=/trunk/mcs/; revision=33935
2004-09-15 14:16:41 +00:00
Raja R Harinath 97553bb62e cvs ignores, sorry about the spam
svn path=/trunk/mcs/; revision=33874
2004-09-14 09:59:51 +00:00
Lluis Sanchez d8615d9cf4 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
Normalization==true by default.

svn path=/trunk/mcs/; revision=33264
2004-09-03 11:12:00 +00:00
Lluis Sanchez d996305ce2 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
In CheckSerializableType, add the option of ignoring types with private
	  constructors. Some kind of lists can be deserialized
	  even if the constructor is private. See bug #61464.
	* SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
	  Before creating a list, check that it has a public constructor.
	* TypeData.cs: Added HasPublicConstructor property.

svn path=/trunk/mcs/; revision=33230
2004-09-02 16:03:15 +00:00
Lluis Sanchez 68a1f5925a * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
value list serialization.
	* XmlSchemaImporter.cs: Added some null checks.

svn path=/trunk/mcs/; revision=33163
2004-09-01 16:16:24 +00:00
Lluis Sanchez c5d8d4e2bd * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
When deserializing an encoded method response, assign to the return value
	  the first element of the message, whatever it is. The return type doesn't
	  need to be Object, it seems to be true for all return types.

svn path=/trunk/mcs/; revision=32813
2004-08-25 08:41:06 +00:00
Lluis Sanchez 65bd7e1e63 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
no need to add it after the call.
	* SoapSchemaImporter.cs: Implemented 2.0 constructors.

svn path=/trunk/mcs/; revision=31480
2004-07-26 18:18:43 +00:00