[Mono-bugs] [Bug 59309][Wis] New - XmlDocument does not preserve all whitespace if PreserveWhitespace is set to true

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 29 May 2004 21:07:02 -0400 (EDT)


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 niel@bornstein.atlanta.ga.us.

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

--- shadow/59309	2004-05-29 21:07:02.000000000 -0400
+++ shadow/59309.tmp.30984	2004-05-29 21:07:02.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 59309
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: Linux and MacOS
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: niel@bornstein.atlanta.ga.us               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlDocument does not preserve all whitespace if PreserveWhitespace is set to true
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+XmlDocument does not preserve whitespace between an element's attributes if
+PreserverWhitespace is set to true.
+
+Steps to reproduce the problem:
+1. Compile this test program:
+using System;
+using System.Xml;
+
+public class Test {
+        public static void Main(string [] args) {
+                XmlDocument doc = new XmlDocument();
+                doc.PreserveWhitespace = true;
+                doc.Load(args[0]);
+                doc.WriteTo(new XmlTextWriter(Console.Out));
+        }
+}
+
+2. Run against an XML document with whitespace between attributes (example
+uses .svn/entries file)
+
+Actual Results:
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries xmlns="svn:">
+<entry committed-rev="913" name=""
+committed-date="2004-05-26T11:27:14.840656Z"
+url="http://svn.example.com/svn/repos/monodn" last-author="edmundd"
+kind="dir" uuid="a4976ae6-85be-0310-9460-8218545d24cd" revision="913" />
+<entry name="06-xml" kind="dir" copyfrom-rev="705"
+copyfrom-url="http://svn.example.com/svn/repos/monodn/07-xml" />
+<entry name="03-keyfunc" kind="dir" />
+<entry committed-rev="450" name="ChapterMakefile"
+text-time="2004-04-09T00:07:18.000000Z"
+committed-date="2004-03-31T14:11:29.253801Z"
+checksum="0df7399db38cee37b5008ad023f973e4" last-author="edmundd"
+kind="file" prop-time="2004-03-31T15:20:05.000000Z" />
+...
+
+Expected Results:
+<?xml version="1.0" encoding="utf-8"?>
+<wc-entries
+   xmlns="svn:">
+<entry
+   committed-rev="913"
+   name=""
+   committed-date="2004-05-26T11:27:14.840656Z"
+   url="http://svn.example.com/svn/repos/monodn"
+   last-author="edmundd"
+   kind="dir"
+
+
+How often does this happen? 
+always
+
+Additional Information: