[Mono-bugs] [Bug 59155][Maj] New - PreserveWhitespace ignored when saving XmlDocument

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 27 May 2004 03:49:35 -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 tim@cbcl.co.uk.

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

--- shadow/59155	2004-05-27 03:49:35.000000000 -0400
+++ shadow/59155.tmp.23880	2004-05-27 03:49:35.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 59155
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details: Linux 2.4.25-1-686 #3
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Major
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tim@cbcl.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PreserveWhitespace ignored when saving XmlDocument
+
+Description of Problem:
+   Whitespace introduced when saving an XML document with
+   doc.PreserveWhitespace = true;
+
+ Steps to reproduce the problem:
+  1. Compile and run this program: mcs Test.cs
+  2. run: mono Test.cs
+
+ Actual Results:
+   Linux/Mono: program output
+       At node #document
+       node ChildNodes differ: 3 / 2
+       node1:
+       xml
+       #whitespace
+       xmlfile
+
+       node2:
+       xml
+       xmlfile
+       documents differ
+
+Expected Results:
+  Windows/Microsoft.NET: program output
+      documents are identical
+
+How often does this happen?
+  Always
+
+Test case creates a document and saves it with "PreserveWhitespace = true"
+This document is then reloaded with "PreserveWhitespace = true"
+The original document and the saved/loaded document are then compared.
+
+Extra whitespace has been added during the saving of the XML under Mono.
+This causes particular problems when trying to verify XML signatures.