[Mono-bugs] [Bug 72739][Nor] New - XmlSerializer will serialize invalid XML characters but complain at deserialization.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 18 Feb 2005 15:47:34 -0500 (EST)
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 joeshaw@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=72739
--- shadow/72739 2005-02-18 15:47:34.000000000 -0500
+++ shadow/72739.tmp.22197 2005-02-18 15:47:34.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 72739
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: joeshaw@novell.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlSerializer will serialize invalid XML characters but complain at deserialization.
+
+If you have an XmlSerializer set up, and one of the things it is
+serializing is a string which contains an invalid XML character (any
+unicode char below 0x20, except 0xd, 0xa and 0x9), it will serialize it
+without error. However, on the side that does deserialize it, you get an
+exception:
+
+System.Xml.XmlException: Referenced character was
+not allowed in XML. Normalization is True, checkCharacters = True Line 9,
+position 69.
+
+I would expect that either it would complain at serialization time, or
+offer a way to replace the invalid characters with valid ones.