Make XmlCustomFormatter.cs more liberal about the date formats it accepts.
Many third party web services do not format date exactly at 'yyyy-mm-dd'.
The Microsoft implementation is more liberal about accepting other formats
and so the current Mono implementation breaks projects that consume third
party web services when they are ported to Mono.
Based on a patch by Aaron Roydhouse.
The existing code had a special code path for handling nullables that
ignored the DataType component.
This patch splits the nullable test away, allows the specified XmlDataType
to be probed and then performs the standard type lookup mechanism.
This allows this:
[XmlElement ("MyNullableTime", DataType="time", IsNullable=true)]
DateTime? myTime;
To be serialized as a "time" instead of a "datetime".
Fixes bug #329
* SerializationCodeGenerator.cs
XmlSerializationWriterInterpreter.cs : fixed bug #419973.
Sometimes implicit operators could involve and it affects on
typecasting. It's simple for code generator, but very bad for
reflection.
* XmlSerializerTestClasses.cs, XmlSerializerTests.cs:
added test for bug #419973.
svn path=/trunk/mcs/; revision=112103
* XmlSerializationReaderInterpreter.cs, MapCodeGenerator.cs,
SerializationCodeGenerator.cs : fixed bug #378696.
Default value should not be filled during deserialization, and
default values for DateTime/TimeSpan/DateTimeOffset should not be
output as raw string in generated code.
* XmlSerializerTestClasses.cs, DeserializeTests.cs,
ComplexDataStructure.cs : added test for bug #378696.
Fixed couple of wrong tests that expects default values filled
during deserialization.
svn path=/trunk/mcs/; revision=104983
* XmlTypeMapping.cs : .NET 2.0 has a weird behavior that swallows
exception from IXmlSerializable.GetSchema().
* XmlSerializerTestClasses.cs, XmlSerializerTests.cs : added test
for IXmlSerializable serialization whose GetSchema() borks.
svn path=/trunk/mcs/; revision=100415
* XmlSerializerTests.cs : added tests for serialization of generic types.
* DeserializeTests.cs : added tests for deserialization of generic types.
* XmlSerializerTestClasses.cs : added classes for tests which use generic types.
svn path=/trunk/mcs/; revision=68886
* XmlSerializerTestClasses.cs: Added test classes for encoded SOAP.
* XmlSerializerTests.cs: Added new tests and fixed existing test.
* XmlReflectionImporterTests.cs: Added test for invalid default
values.
* SoapReflectionImporterTests.cs: Fixed numbering of tests.
* XmlSerializer.cs: Corrected exception message when deserialization
fails.
* SerializationCodeGenerator.cs: Added support for flag enums.
* XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
all exceptions that occur while reflecting member. Validate default
values to match MS.
* SoapReflectionImporter.cs: Revert small part of previous patch as
XmlSerializer expects enum value.
svn path=/trunk/mcs/; revision=66524
* XmlSerializerTestClasses.cs: Added test classes and improved existing
classes for usage in upcoming bug reports.
* System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
SoapAttributesTests.cs.
* SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
svn path=/trunk/mcs/; revision=59917
* 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
* 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
* XmlSerializerTests.cs: Added test for bug #75855.
* DeserializeTests.cs: New test.
* XmlSerializerTestClasses.cs: New test classes.
svn path=/trunk/mcs/; revision=48802
* XmlSerializerTests.cs:
* DeserializeTests.cs:
* XmlSerializerTestClasses.cs: Added tests for readonly properties and
elements with spaces on them.
svn path=/trunk/mcs/; revision=43585
* added this file as a new entry.
See ../ChangeLog to find former ChangeLog entries.
* added XmlSerializerTests.cs and XmlSerializerTestClasses.cs
(by Erik Lebel)
svn path=/trunk/mcs/; revision=13550