[Mono-bugs] [Bug 412657] New: Regression in System.XML: XmlParserContext returns null as NamespaceManager

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 28 11:07:53 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=412657


           Summary: Regression in System.XML: XmlParserContext returns null
                    as NamespaceManager
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: skolima at gmail.com
         QAContact: mono-bugs at lists.ximian.com
                CC: skolima at gmail.com
          Found By: ---


Context created with
XmlParserContext context = new XmlParserContext(null, null, null,
XmlSpace.Default);

returns null as the NamespaceManager, causing NullPointer exceptions in
XmlTextReader line 1361. This works as expected in mono 1.9.1, MS.Net. Broken
in svn HEAD r108697 (and 2.0 branch).

Example failing code:

string s = "<Verifier id='SimpleIntVerifier'/>";
MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(s));
XmlReader reader = new XmlTextReader(stream, XmlNodeType.Element,
        new XmlParserContext(null, null, null, XmlSpace.Default));
reader.Read();


-- 
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