[Mono-bugs] [Bug 77553][Min] New - XmlWriter.WriteString("") do not close attribute list

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 14 05:05:20 EST 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 vdaron at ask.be.


--- shadow/77553	2006-02-14 05:05:20.000000000 -0500
+++ shadow/77553.tmp.29625	2006-02-14 05:05:20.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 77553
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: XP SP2 Framework.NET 2.0
+Status: NEW   
+Priority: Minor
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: vdaron at ask.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: XmlWriter.WriteString("") do not close attribute list
+Using XmlWriter.WriteString("") do not close the attribute list with
+XmlWriter created using Factory XmlWriter.Create()
+Steps to reproduce the problem:
+StringBuilder header = new StringBuilder();
+using(XmlWriter writer = XmlWriter.Create(header, new XmlWriterSettings()))
+   writer.WriteStartElement("elem");
+   writer.WriteString("");
+   writer.Flush();
+   Console.WriteLine(header.ToString());
+Actual Results:
+<?xml version="1.0" encoding="utf-16"?><testElem
+Expected Results:
+<?xml version="1.0" encoding="utf-16"?><testElem>
+How often does this happen? 
+Additional Information:
+A simple Workaround will be the use WriteRaw("") instead of WriteString("")

More information about the mono-bugs mailing list