[Mono-bugs] [Bug 78536][Maj] Changed - XML deserialization doesnt
process CDATA sections
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 29 22:37:14 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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78536
--- shadow/78536 2006-05-29 22:25:32.000000000 -0400
+++ shadow/78536.tmp.27941 2006-05-29 22:37:14.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 78536
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details: XP SP2
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: INVALID
+Severity: Unknown
Priority: Major
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: leppie at webmail.co.za
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -24,6 +24,34 @@
Actual Results:
- XMLSerializer reports unknown node
Expected Results:
- should add text as is
+
+------- Additional Comments From atsushi at ximian.com 2006-05-29 22:37 -------
+It just works.
+
+--------
+using System;
+using System.Xml;
+using System.Xml.Serialization;
+
+public class Test
+{
+ public string Foo = "foo";
+
+ public static void Main ()
+ {
+ XmlSerializer ser = new XmlSerializer (typeof (Test));
+ string xml = @"<Test xmlns:xsd='http://www.w3.org/2001/XMLSchema'
+xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+ <Foo><![CDATA[foo]]></Foo>
+</Test>";
+ ser.Deserialize (new XmlTextReader (xml, XmlNodeType.Document, null));
+ }
+}
+
+----
+
+Next time you post bugs, please attach reproducible example code. Read
+other random bug reports and you'll understand how to write them.
More information about the mono-bugs
mailing list