mail-archives/mono-bugs/2006-February/039261.html

117 строки
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 77553][Min] New - XmlWriter.WriteString(&quot;&quot;) do not
close attribute list
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077553%5D%5BMin%5D%20New%20-%20XmlWriter.WriteString%28%22%22%29%20do%20not%0A%09close%20attribute%20list&In-Reply-To=bug-77553%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="039260.html">
<LINK REL="Next" HREF="039262.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 77553][Min] New - XmlWriter.WriteString(&quot;&quot;) do not
close attribute list</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077553%5D%5BMin%5D%20New%20-%20XmlWriter.WriteString%28%22%22%29%20do%20not%0A%09close%20attribute%20list&In-Reply-To=bug-77553%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 77553][Min] New - XmlWriter.WriteString(&quot;&quot;) do not
close attribute list">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Tue Feb 14 05:05:20 EST 2006</I>
<P><UL>
<LI>Previous message: <A HREF="039260.html">[Mono-bugs] [Bug 76902][Wis] Changed - Graphics.BeginContainer()
raises NotImplementedException
</A></li>
<LI>Next message: <A HREF="039262.html">[Mono-bugs] [Bug 77550][Maj] Changed - UTF8Encoding fails on
invalid UTF8
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#39261">[ date ]</a>
<a href="thread.html#39261">[ thread ]</a>
<a href="subject.html#39261">[ subject ]</a>
<a href="author.html#39261">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vdaron at ask.be.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=77553">http://bugzilla.ximian.com/show_bug.cgi?id=77553</A>
--- 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
+Resolution:
+Severity:
+Priority: Minor
+Component: Sys.XML
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">atsushi at ximian.com</A>
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vdaron at ask.be</A>
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlWriter.WriteString(&quot;&quot;) do not close attribute list
+
+Using XmlWriter.WriteString(&quot;&quot;) 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(&quot;elem&quot;);
+ writer.WriteString(&quot;&quot;);
+ writer.Flush();
+ Console.WriteLine(header.ToString());
+}
+
+Actual Results:
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;testElem
+
+Expected Results:
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;testElem&gt;
+
+How often does this happen?
+Everytime
+
+Additional Information:
+A simple Workaround will be the use WriteRaw(&quot;&quot;) instead of WriteString(&quot;&quot;)
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="039260.html">[Mono-bugs] [Bug 76902][Wis] Changed - Graphics.BeginContainer()
raises NotImplementedException
</A></li>
<LI>Next message: <A HREF="039262.html">[Mono-bugs] [Bug 77550][Maj] Changed - UTF8Encoding fails on
invalid UTF8
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#39261">[ date ]</a>
<a href="thread.html#39261">[ thread ]</a>
<a href="subject.html#39261">[ subject ]</a>
<a href="author.html#39261">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>