[Mono-bugs] [Bug 336625] XmlSerializer Deserialize
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 25 09:58:26 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=336625#c1
--- Comment #1 from Atsushi Enomoto <atsushi at ximian.com> 2007-10-25 07:58:25 MST ---
One simplified testcase:
using System;
using System.IO;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
public class Test
{
[XmlElement (DataType = "duration")]
public string StringDuration = "aaa";
public static void Main ()
{
XmlSerializer ser = new XmlSerializer (typeof (Test));
string s = "<Test
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'><StringDuration>aaa</StringDuration></Test>";
using (XmlWriter w = XmlWriter.Create (Console.Out))
ser.Serialize (w, new Test ());
XmlReader r = XmlReader.Create (new StringReader (s));
ser.Deserialize (r);
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list