[Mono-bugs] [Bug 76288][Wis] Changed - NullReferenceException when writing out XmlSchema

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 30 00:09:03 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 duncan at ximian.com.

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

--- shadow/76288	2005-09-30 00:07:00.000000000 -0400
+++ shadow/76288.tmp.25182	2005-09-30 00:09:03.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 76288
 Product: Mono: Class Libraries
 Version: 1.0
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: Sys.XML
 AssignedTo: lluis at ximian.com                            
 ReportedBy: duncan at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -63,6 +63,29 @@
 (System.Object o)
 in <0x0004d> System.Xml.Schema.XmlSchemaSerializer:Serialize (System.Object
 o, System.Xml.Serialization.XmlSerializationWriter writer)
 in <0x000b9> System.Xml.Serialization.XmlSerializer:Serialize
 (System.Xml.XmlWriter writer, System.Object o,
 System.Xml.Serialization.XmlSerializerNamespaces namespaces)
+
+------- Additional Comments From duncan at ximian.com  2005-09-30 00:09 -------
+Here's the test case:
+
+using System;
+using System.IO;
+using System.Xml.Schema;
+
+class X {
+        static void Main (string [] args)
+        {
+                if (args.Length != 1)
+                        return;
+
+                string file = args [0];
+                XmlSchema s = XmlSchema.Read (File.OpenText (file), null);
+                XmlSchemaSet set = new XmlSchemaSet ();
+                set.Add (s);
+                foreach (XmlSchema schema in set.Schemas ())
+                        schema.Write (Console.Out);
+        }
+}
+


More information about the mono-bugs mailing list