[Mono-bugs] [Bug 75546][Nor] New - Error in writing DataSet XML Schema

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 14 11:58:57 EDT 2005


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 fregaham at gmail.com.

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

--- shadow/75546	2005-07-14 11:58:57.000000000 -0400
+++ shadow/75546.tmp.4443	2005-07-14 11:58:57.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 75546
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: fregaham at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error in writing DataSet XML Schema
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Using Mono 1.1.8 on Windows and SVN (47307) on Linux. Same exception is rised.
+
+I get an exception when trying to write schema using
+DataSet.WriteXmlSchema. DataSet was loaded OK from an attached XML file.
+
+Writing this schema on MS .NET was OK.
+
+The schema is partially written and ends on the place of crash while
+writing "xs:keyref" element.
+
+marcho at amalka:~/Projects/xmlzip/badschema$ make run
+mono badschema.exe
+
+Unhandled Exception: System.ArgumentException: The Namespace cannot be empty.
+in <0x00097> System.Xml.XmlTextWriter:LookupPrefix (System.String ns)
+in <0x00047> System.Xml.XmlTextWriter:WriteQualifiedName (System.String
+localName, System.String ns)
+in <0x001f1> System.Data.XmlSchemaWriter:AddForeignKeys
+(System.Data.DataRelation rel, System.Collections.ArrayList names)
+in <0x00333> System.Data.XmlSchemaWriter:WriteConstraints ()
+in <0x0045f> System.Data.XmlSchemaWriter:WriteDataSetElement ()
+in <0x0089c> System.Data.XmlSchemaWriter:WriteSchema ()
+in <0x0002f> System.Data.XmlSchemaWriter:WriteXmlSchema
+(System.Data.DataSet dataset, System.Xml.XmlWriter writer,
+System.Data.DataTableCollection tables, System.Data.DataRelationCollection
+relations)
+in <0x00038> System.Data.XmlSchemaWriter:WriteXmlSchema
+(System.Data.DataSet dataset, System.Xml.XmlWriter writer)
+in <0x00028> System.Data.DataSet:DoWriteXmlSchema (System.Xml.XmlWriter writer)
+in <0x0000d> System.Data.DataSet:WriteXmlSchema (System.Xml.XmlWriter writer)
+in <0x00057> System.Data.DataSet:WriteXmlSchema (System.String fileName)
+in <0x0003d> badschema:Main ()
+make: *** [run] Error 1
+marcho at amalka:~/Projects/xmlzip/badschema$
+
+Steps to reproduce the problem:
+1. Compile attached simple test case. "make"
+2. Run "make run"
+3. Notice an exception
+
+Actual Results:
+An exception is rised.
+
+Expected Results:
+Shuld write correct XML schema to out_baschema.xml or raise error while
+reading if the schema is bad.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+
+test case on http://www.stud.fit.vutbr.cz/~xschmi01/badschema.tar.gz


More information about the mono-bugs mailing list