[Mono-bugs] [Bug 78214][Nor] Changed - [PATCH] XML Serialization
fixes for default values
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed May 3 07:34:55 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lluis at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78214
--- shadow/78214 2006-05-03 07:14:58.000000000 -0400
+++ shadow/78214.tmp.6659 2006-05-03 07:34:55.000000000 -0400
@@ -73,6 +73,15 @@
In that case you cannot store the default value as the enum object
value, as the default value in the XSD will just be a whitespace-
delimited list of named constants.
I have test cases for this in the patch for bug #78221 (eg.
ImportTypeMapping_OptionalValueTypeContainer test).
+
+------- Additional Comments From lluis at ximian.com 2006-05-03 07:34 -------
+Ok, but it is not necessary to slow down the serializer because of
+this. Notice that XmlSerializer only works with maps imported using
+XmlReflectionImporter or SoapReflectionImporter, but not
+XmlSchemaImporter. To summarize: XmlSerializer can expect that default
+values will always be enum objects. XmlCodeExporter and
+XmlSchemaExporter can expect that default values can be enum objects
+or strings which need to be parsed.
More information about the mono-bugs
mailing list