[Mono-bugs] [Bug 52772][Nor] New - Default namespace attribute is not placed in the right place while serializing class objects
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jan 2004 07:40:57 -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 borisk@mainsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=52772
--- shadow/52772 2004-01-12 07:40:57.000000000 -0500
+++ shadow/52772.tmp.22130 2004-01-12 07:40:57.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 52772
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System.XML
+AssignedTo: atsushi@ximian.com
+ReportedBy: borisk@mainsoft.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Default namespace attribute is not placed in the right place while serializing class objects
+
+Description of Problem:
+When serializing an object of class with namespace defined, the xmlns
+(default namespace) attribute is not placed in the right place of the
+result XML.
+If you try to desarialize such an XML with original .NET code it fails with
+exception.
+
+
+Steps to reproduce the problem:
+1.Define class with
+System.Xml.Serialization.XmlTypeAttribute(Namespace="something")]
+2. Serialize it using Sustem.Xml ang using original .NET
+3. Examine the results.
+
+Actual Results:
+xmlns attribute placed in the element representing the whole object
+
+Expected Results:
+xmlns attribute is placed in the child elements of the element representing
+the whole object
+
+How often does this happen?
+Only while serializing single object - array of objects serialization is ok.
+
+Additional Information:
+
+Attached are sinple test and two result logs - serialization using
+System.Xml and using original .NET