[Mono-bugs] [Bug 75763][Maj] New - System.Xml.XmlTextWriter writes garbage at the beginning of the document.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 9 13:56:58 EDT 2005


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 mwickline at maad.com.

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

--- shadow/75763	2005-08-09 13:56:58.000000000 -0400
+++ shadow/75763.tmp.19309	2005-08-09 13:56:58.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 75763
+Product: Mono: Runtime
+Version: 1.1
+OS: Mandrake 9.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mwickline at maad.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Xml.XmlTextWriter writes garbage at the beginning of the document.
+
+Please fill in this template when reporting a bug, unless you know what   
+you are doing.   
+Description of Problem:   
+When calling System.Xml.XmlTextWriter.WriteStartDocument(), some garbage   
+characters "" are written before the "<?xml version="1.0"   
+encoding="utf-8"?>" string.   
+   
+Steps to reproduce the problem:   
+Ran the test program listed under "Additional Information".   
+   
+Actual Results:   
+<?xml version="1.0" encoding="utf-8"?>   
+<GarbageElement />   
+   
+Expected Results:   
+<?xml version="1.0" encoding="utf-8"?>   
+<GarbageElement />   
+   
+How often does this happen?    
+All the time on Linux.  Didn't test it under Mono for Windows.   
+Running on an x86 machine with Mandrake 9.1. 
+Mono runtime 1.1.8. 
+ 
+ 
+Additional Information (Test Program):   
+   
+using System;   
+namespace Test.XMLTestWriterFunctionality   
+{   
+using System.Xml;   
+class TestWriterFunctionality   
+{   
+  public TestWriterFunctionality()   
+  {}   
+   
+  public static int Main(string[] args)   
+  {   
+    System.Xml.XmlTextWriter writer = new   
+    XmlTextWriter("./test.xml", System.Text.Encoding.UTF8);   
+    writer.Formatting = Formatting.Indented;   
+    writer.WriteStartDocument();   
+    writer.WriteStartElement("RootElement");   
+    writer.WriteEndElement();   
+    writer.WriteEndDocument();   
+    writer.Close();   
+    return 0;     
+  }   
+}   
+}


More information about the mono-bugs mailing list