[Mono-bugs] [Bug 53959][Cri] Changed - MONO Beta 2 DataSet problem round-tripping XML (Schema Inference Issue)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Jun 2004 19:24:16 -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 davidandrewtaylor@hotmail.com.

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

--- shadow/53959	2004-03-30 10:16:47.000000000 -0500
+++ shadow/53959.tmp.1177	2004-06-01 19:24:16.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 53959
 Product: Mono: Class Libraries
 Version: unspecified
 OS: Red Hat 9.0
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Critical
 Component: Sys.Data
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: davidandrewtaylor@hotmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: MONO 0.30 DataSet problem round-tripping XML (Schema Inference Issue)
+Summary: MONO Beta 2 DataSet problem round-tripping XML (Schema Inference Issue)
 
 Description of Problem:
 MONO 0.30: If I use ReadXml(input.txt) and then immediately call WriteXml
 (output.txt), the output format is incorrect.  Certain XML attributes 
 have been modified to be XML elements.  This appears to be a problem with 
 the MONO DataSet attempting to infer the XML schema as when I call 
@@ -124,6 +124,40 @@
     </xs:keyref>
   </xs:element>
 </xsd:schema>
 
 ------- Additional Comments From lluis@ximian.com  2004-03-30 10:16 -------
 Fixed in CVS.
+
+------- Additional Comments From davidandrewtaylor@hotmail.com  2004-06-01 19:24 -------
+This test case is broken again in MONO Beta 2.  MONO is not correctly
+inferring the schema.  
+
+Incorrect MONO Beta 2 test case output is:
+<?xml version="1.0" standalone="yes"?>
+<FullTextResponse>
+  <Domains />
+</FullTextResponse>
+
+And you can see MONO is not coffectly inferring the schema because
+AvailResponse type defined below does not appear inside the Domains
+element!
+
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
+id="FullTextResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+  <xs:complexType name="AvailResponse">
+    <xs:attribute type="xs:string" name="info" />
+    <xs:attribute type="xs:string" name="name" />
+  </xs:complexType>
+  <xs:element name="FullTextResponse" msdata:IsDataSet="true"
+msdata:Locale="en-AU">
+    <xs:complexType>
+      <xs:choice maxOccurs="unbounded">
+        <xs:element name="Domains">
+          <xs:complexType />
+        </xs:element>
+      </xs:choice>
+    </xs:complexType>
+  </xs:element>
+</xs:schema>
+