Przeglądaj źródła

* XmlSchema.cs: If the schema element is an empty element, skip it after
reading the attributes.

svn path=/trunk/mcs/; revision=19014

Lluis Sanchez 22 lat temu
rodzic
commit
3e784aea22

+ 5 - 0
mcs/class/System.XML/System.Xml.Schema/ChangeLog

@@ -1,3 +1,8 @@
+2003-10-13  Lluis Sanchez Gual <[email protected]>
+
+	* XmlSchema.cs: If the schema element is an empty element, skip it after
+	  reading the attributes.
+
 2003-10-09  Atsushi Enomoto  <[email protected]>
 
 	* BuiltInDatatype.cs : Added CLSCompliant attributes to some classes.

+ 3 - 0
mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs

@@ -622,6 +622,9 @@ namespace System.Xml.Schema
                                                         {
                                                                 ReadContent(schema, reader, validationEventHandler);
                                                         }
+														else
+															rdr.Skip ();
+															
 							if (rdr.NodeType == XmlNodeType.EndElement)
 								rdr.Read ();
                                                         return schema;