[Mono-bugs] [Bug 514015] New: XmlNamespaceManager.GetNamespacesInScope throws ArgumentException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 17 11:17:35 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=514015


           Summary: XmlNamespaceManager.GetNamespacesInScope throws
                    ArgumentException
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: oliver at cbcl.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


If the xml namespace has been added to an XmlNamespaceManager, then an
exception is thrown trying to construct the in scope namespaces dictionary in
the GetNamespacesInScope method.  Here is some simple code demonstrating the
problem.

class Program
{
    static void Main(string[] args)
    {
        var nt = new NameTable();
        var nsmgr = new XmlNamespaceManager(nt);

        nsmgr.AddNamespace("xml", "http://www.w3.org/XML/1998/namespace");

        nsmgr.GetNamespacesInScope(XmlNamespaceScope.All);
    }
}

-- 
Configure bugmail: http://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