[Mono-bugs] [Bug 79047][Nor] Changed - Mono does not resend xmlns as required

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 31 20:57:20 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 nathan at mammoth.com.au.

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

--- shadow/79047	2006-08-31 18:51:42.000000000 -0400
+++ shadow/79047.tmp.8603	2006-08-31 20:57:20.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 79047
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: CLOSED   
+Status: NEEDINFO   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Sys.Web.Services
 AssignedTo: lluis at ximian.com                            
 ReportedBy: nathan at mammoth.com.au               
@@ -199,6 +199,48 @@
 
 
 ------- Additional Comments From nathan at mammoth.com.au  2006-08-31 18:51 -------
 That was with 1.1.16
 
 1.1.17 does not have this problem.
+
+------- Additional Comments From nathan at mammoth.com.au  2006-08-31 20:57 -------
+My bad; this is still present in 1.1.17.
+
+I dont really know what the intention is with the atomized code here
+is so I won't argue - perhaps the end behaviour is intended.  Here's a
+simple test:
+
+using System;
+using System.Xml;
+using System.Xml.Schema;
+
+public class Test
+{
+    public static void Main ()
+    {
+        XmlTextWriter xw = new XmlTextWriter (Console.Out);
+        xw.Formatting = Formatting.Indented;
+        string q1 = "urn:test";
+
+        string q1prefix_first= "q1";
+        // Ensure we get a different reference for the string "q1"
+        string q1prefix_second = ("q1" + "a").Substring(0,2);
+
+        xw.WriteStartElement("document");
+        xw.WriteStartElement("item");
+        xw.WriteStartElement (q1prefix_first, "addMedia", q1);
+        xw.WriteEndElement();
+        xw.WriteEndElement();
+        xw.WriteStartElement("item");
+        xw.WriteStartElement (q1prefix_second, "addMedia", q1);
+        xw.WriteEndElement();
+        xw.WriteEndElement();
+        xw.WriteEndElement();
+    }
+}
+
+Compiled with 1.1.17
+* 1.0 profile does not work
+* 2.0 profile does work
+
+


More information about the mono-bugs mailing list