[Mono-bugs] [Bug 58744][Nor] New - exception with ReadXmlSchema
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 20 May 2004 02:12:03 -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 vladimir@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58744
--- shadow/58744 2004-05-20 02:12:03.000000000 -0400
+++ shadow/58744.tmp.15693 2004-05-20 02:12:03.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 58744
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vladimir@pobox.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: exception with ReadXmlSchema
+
+The following code snippet runs under the .NET runtime, but fails with this
+exception under Mono:
+
+vladimir@tornado[1043]% mono ntest.exe
+
+Unhandled Exception: System.Data.DataException: Invalid XPath selection
+inside field. Cannot find: Track
+in <0x00278> System.Data.XmlSchemaDataImporter:ProcessParentKey
+(System.Xml.Schema.XmlSchemaIdentityConstraint)
+in <0x00601> System.Data.XmlSchemaDataImporter:Process ()
+in <0x00031> System.Data.DataSet:ReadXmlSchema (System.Xml.XmlReader)
+in <0x0003d> System.Data.DataSet:ReadXmlSchema (System.IO.Stream)
+in <0x0005a> NTest:Main ()
+
+=== ntest.cs ===
+using System;
+using System.Data;
+public class NTest {
+ public static void Main() {
+ DataSet n = new DataSet();
+ n.ReadXMLSchema("Tracks.xsd");
+ }
+}
+=== end ===
+
+Tracks.xsd is attached.