[Mono-bugs] [Bug 78598][Nor] New - XmlWriter doesn't handle attribute namespaces properly (regression)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 7 08:46:49 EDT 2006


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 lluis at ximian.com.

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

--- shadow/78598	2006-06-07 08:46:49.000000000 -0400
+++ shadow/78598.tmp.29161	2006-06-07 08:46:49.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 78598
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: lluis at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlWriter doesn't handle attribute namespaces properly (regression)
+
+Run the following test case:
+
+using System;
+using System.Xml;
+
+public class Tester
+{
+	public static void Main ()
+	{
+		XmlTextWriter tw = new XmlTextWriter (Console.Out);
+		
+		tw.WriteStartElement ("Envelope");
+		tw.WriteAttributeString ("xmlns",
+"http://schemas.xmlsoap.org/soap/envelope/");
+		
+		tw.WriteStartElement ("UserInfo");
+		tw.WriteAttributeString ("actor",
+"http://schemas.xmlsoap.org/soap/envelope/", "");
+		tw.WriteEndElement ();
+
+		tw.WriteEndElement ();
+	}
+}
+
+This writes:
+
+<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><UserInfo
+actor="" /></Envelope>
+
+Which is incorrect since the actor attribute should be bound to the
+http://schemas.xmlsoap.org/soap/envelope/ namespace.
+
+While MS.NET writes:
+
+<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><UserInfo
+d2p1:actor="" xmlns:d2p1="http://schemas.xmlsoap.org/soap/envelope/"
+/></Envelope>


More information about the mono-bugs mailing list