[Mono-bugs] [Bug 59880][Nor] New - Parsing file which refers to xml: namespace throws exception

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Jun 2004 13:19:13 -0400 (EDT)


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 1@234.cx.

http://bugzilla.ximian.com/show_bug.cgi?id=59880

--- shadow/59880	2004-06-09 13:19:13.000000000 -0400
+++ shadow/59880.tmp.1420	2004-06-09 13:19:13.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 59880
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Fedora Core 2 with all current updates
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: 1@234.cx               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Parsing file which refers to xml: namespace throws exception
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+The XML specifications require that the "xml:" namespace prefix must only
+be used with the URI "http://www.w3.org/XML/1998/namespace".  The reverse
+is also true: if that URI is used, it must only be used with the "xml:" prefix.
+
+This requirement is enforced by Mono's XML parser.  Unfortunately the
+exception is thrown even if the correct prefix and URI are used.
+
+Steps to reproduce the problem:
+1. Save the test case files (which I will attach shortly) in a single
+directory.
+2. Compile test.cs to test.exe.
+3. Run test.exe 
+
+Actual Results:
+
+Exception is thrown:
+
+Unhandled Exception: System.ArgumentException: Namespace URI
+"http://www.w3.org/XML/1998/namespace" can only be declared with the fixed
+prefix "xml"
+
+Expected Results:
+
+The program should simply exit; the XML document is well-formed.
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+This occurs with beta 2.