[Mono-bugs] [Bug 82372][Nor] New - XmlSerializer should only process significant whitespace fromTextReader/Stream
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Aug 8 09:44:35 EDT 2007
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=82372
--- shadow/82372 2007-08-08 09:44:35.000000000 -0400
+++ shadow/82372.tmp.10405 2007-08-08 09:44:35.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 82372
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+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: XmlSerializer should only process significant whitespace fromTextReader/Stream
+
+When a TextReader or a Stream is passed to XmlSerializer.Deserialize, then
+an XmlTextReader should be constructed that only returns significant
+whitespace.
+
+To reproduce, compile and run the attached code snippet.
+
+Expected result:
+
+"Significant" is written to the stdout four times.
+
+Actual result:
+
+"All" is written to stdout, and an unhandled exception is reported:
+
+Unhandled Exception: System.Xml.XmlException: 'EndElement' is an invalid
+node type. Line 5, position 7.
+ at System.Xml.XmlReader.ReadStartElement (System.String name) [0x00000]
+ at SerializableDictionary`2[System.String,System.Int32].ReadXml
+(System.Xml.XmlReader ) [0x00000]
+ at System.Xml.Serialization.XmlSerializationReader.ReadSerializable
+(IXmlSerializable serializable) [0x00000]
+ at
+System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElemen
+t (System.Xml.Serialization.XmlTypeMapElementInfo elem) [0x00000]
+ at
+System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (Sys
+tem.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList,
+Boolean readByOrder) [0x00000]
+ at
+System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanc
+eMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object
+ob) [0x00000]
+ at
+System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanc
+e (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable,
+Boolean checkType) [0x00000]
+ at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject
+(System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable,
+Boolean checkType) [0x00000]
+ at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot
+(System.Xml.Serialization.XmlTypeMapping rootMap) [0x00000]
+ at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot
+() [0x00000]
+ at System.Xml.Serialization.XmlSerializer.Deserialize
+(System.Xml.Serialization.XmlSerializationReader reader) [0x00000]
More information about the mono-bugs
mailing list