[Mono-bugs] [Bug 54427][Nor] New - XmlSerializer does not support prefixes on the top level element.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 16 Feb 2004 12:37:37 -0500 (EST)


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 simon.steele@softel.co.uk.

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

--- shadow/54427	2004-02-16 12:37:37.000000000 -0500
+++ shadow/54427.tmp.6563	2004-02-16 12:37:37.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 54427
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: simon.steele@softel.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlSerializer does not support prefixes on the top level element.
+
+Description of Problem:
+
+The XmlSerializer class does not use defined prefixes for the outermost
+element whereas the .NET equivalent does. This is inconsistent (although
+not incorrect - the XML is valid) and actually causes me problems due to a
+wire protocol requiring the prefixed XML.
+
+Steps to reproduce the problem:
+
+Compile the attached test program and run it.
+
+Actual Results:
+
+<?xml version="1.0" encoding="utf-16"?><TestObject xmlns="URN:TestBug" />
+
+Expected Results:
+
+<?xml version="1.0" encoding="utf-16"?><tc:TestObject xmlns:tc="URN:TestBug" />
+
+How often does this happen? 
+
+Every time.