[Mono-bugs] [Bug 77512][Nor] New - [PATCH]
XmlSerializationWriter.WriteTypedPrimitive fixes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Feb 9 12:42:16 EST 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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=77512
--- shadow/77512 2006-02-09 12:42:16.000000000 -0500
+++ shadow/77512.tmp.699 2006-02-09 12:42:16.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 77512
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PATCH] XmlSerializationWriter.WriteTypedPrimitive fixes
+
+The attached fixes the following issues in
+System.Xml.Serialization.XmlSerializationWriter.WriteTypePrimitive:
+
+- for enum constants, the name instead of the integral values is
+serialized
+
+- serializing an enum constant as xsi type fails with
+InvalidOperationException
+
+- the namespace for guid and char values is not correct (should be
+http://microsoft.com/wsdl/types/)
+
+- if no name is supplied, then the XML name of a value's type should be
+used as element name. Except here is XmlNode[], where name should
+be "anyType".
+
+- if type of value (or its underlying type in case of an enum constant)
+is not a primitive type, XMLNode[] or XmlQualifiedName then an
+InvalidOperationException must be thrown (previously, this was only done
+if xsiType was true)
+
+- if no name is supplied, then the XML Schema instance namespace should
+be used (except for char and guid types)
+
+All changes are covered by unit tests.
More information about the mono-bugs
mailing list