[Mono-bugs] [Bug 40238][Wis] New - XmlSerializer generates non-well-formed XML
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 24 Mar 2003 20:39:50 -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 duncan@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=40238
--- shadow/40238 Mon Mar 24 20:39:50 2003
+++ shadow/40238.tmp.18148 Mon Mar 24 20:39:50 2003
@@ -0,0 +1,86 @@
+Bug#: 40238
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: duncan@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlSerializer generates non-well-formed XML
+
+Using a simple sample class, c.dll:
+
+If I run MonoXSD on c.dll on Windows, I get valid output, similar to
+xsd.exe's output, on Linux, however, I get the follow invalid XML document:
+
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+elementFormDefault="qualified" finalDefault="" blockDefault=""
+attributeFormDefault="">
+ <Items>
+ <xs:element type=":Person" nillable="true" name="Person" form=""
+final="" block="">
+ <xs:annotation nil="true" />
+ <Constraints />
+ <SchemaType nil="true" />
+ </xs:element>
+ <xs:complexType final="" name="Person" block="">
+ <xs:annotation nil="true" />
+ <xs:anyAttribute nil="true" />
+ <Attributes />
+ <Particle>
+ <xs:annotation nil="true" />
+ <Items>
+ <xs:element maxOccurs="1" minOccurs="0"
+type="http://www.w3.org/2001/XMLSchema:string" name="name" form="" final=""
+block="">
+ <xs:annotation nil="true" />
+ <Constraints />
+ <SchemaType nil="true" />
+ </xs:element>
+ <xs:element maxOccurs="1" minOccurs="1" type=":JobType"
+name="job" form="" final="" block="">
+ <xs:annotation nil="true" />
+ <Constraints />
+ <SchemaType nil="true" />
+ </xs:element>
+ </Items>
+ </Particle>
+ <ContentModel nil="true" />
+ </xs:complexType>
+ <xs:element type=":JobType" name="JobType" form="" final="" block="">
+ <xs:annotation nil="true" />
+ <Constraints />
+ <SchemaType nil="true" />
+ </xs:element>
+ <xs:simpleType final="" name="JobType">
+ <xs:annotation nil="true" />
+ <Content base="http://www.w3.org/2001/XMLSchema:string">
+ <xs:annotation nil="true" />
+ <Facets>
+ <xs:enumeration value="Programmer">
+ <xs:annotation nil="true" />
+ </xs:enumeration>
+<xs:enumeration value="Hacker">
+ <xs:annotation nil="true" />
+ </xs:enumeration>
+ <xs:enumeration value="Manager">
+ <xs:annotation nil="true" />
+ </xs:enumeration>
+ <xs:enumeration value="Slacker">
+ <xs:annotation nil="true" />
+ </xs:enumeration>
+ </Facets>
+ <xs:simpleType nil="true" />
+ </Content>
+ </xs:simpleType>
+ </Items>
+ <Includes />