[Mono-bugs] [Bug 36871][Nor] New - xmlns dupes
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 16 Jan 2003 21:01:14 -0500 (EST)
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 spouliot@videotron.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=36871
--- shadow/36871 Thu Jan 16 21:01:14 2003
+++ shadow/36871.tmp.18622 Thu Jan 16 21:01:14 2003
@@ -0,0 +1,49 @@
+Bug#: 36871
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: spouliot@videotron.ca
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: xmlns dupes
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+xmlns attributes can be duplicated in a OuterXml output (and maybe in
+other cases).
+
+Steps to reproduce the problem:
+static void Main(string[] args) {
+ XmlDocument doc = new XmlDocument ();
+ doc.LoadXml("<RetrievalElement URI=\"\"
+xmlns=\"http://www.w3.org/2000/09/xmldsig#\" />");
+ if (doc.DocumentElement.OuterXml == "<RetrievalElement URI=\"\"
+xmlns=\"http://www.w3.org/2000/09/xmldsig#\" />")
+ Console.WriteLine ("Ok");
+ else
+ Console.WriteLine ("Failed");
+}
+
+Actual Results:
+We have 2 xmlns attributes. One before the URI attribute, the other one
+after.
+
+
+Expected Results:
+xmlns attribute shouldn't be twice in the output
+
+How often does this happen?
+Always
+
+Additional Information:
+Only tested on MS.NET under Windows. However it should affect the results.