[Mono-bugs] [Bug 53201][Maj] Changed - Deserialization of XmlElement fails.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 22 Jan 2004 05:36:47 -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 borisk@mainsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=53201
--- shadow/53201 2004-01-22 05:31:13.000000000 -0500
+++ shadow/53201.tmp.13737 2004-01-22 05:36:47.000000000 -0500
@@ -71,6 +71,16 @@
Additional Information:
------- Additional Comments From borisk@mainsoft.com 2004-01-22 05:31 -------
Created an attachment (id=6499)
Proposed patch
+
+------- Additional Comments From borisk@mainsoft.com 2004-01-22 05:36 -------
+As far as I see the check (Reader.LocalName != rootMap.ElementName)
+in XmlSerializationReaderInterpreter.ReadRoot is redundant besause
+rootMap is always created base on typeinfo of some element, so in
+this case it will always hold "XmlElement" as ElementName, and its
+never will be the same as Reader.LocalName of some instance of
+XmlElement previously serialized.
+
+boris