2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Wed, 4 Feb 2004 17:46:21 +0000 (17:46 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Wed, 4 Feb 2004 17:46:21 +0000 (17:46 -0000)
* XsdValidatingReader.cs : When the reader points at XmlDeclaration,
  AttributeCount counts its values (version, encoding, standalone).

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

mcs/class/System.XML/Mono.Xml.Schema/ChangeLog
mcs/class/System.XML/Mono.Xml.Schema/XsdValidatingReader.cs

index bb23b7ea8c3a55673f36379206c0394842f98024..1ef886fb381c9db891d4bee9d5bf335093e19818 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-04  Atsushi Enomoto <atsushi@ximian.com>
+
+       * XsdValidatingReader.cs : When the reader points at XmlDeclaration,
+         AttributeCount counts its values (version, encoding, standalone).
+
 2004-02-03  Atsushi Enomoto <atsushi@ximian.com>
 
        * XsdValidatingReader.cs : schemaLocation is not NMTOKENS. It is list
index 195a69c8f89583ca1ee2605f7e2e0f7a927af37f..b57473d4918ce2fd20b354977c304f14753aab09 100644 (file)
@@ -1635,6 +1635,9 @@ namespace Mono.Xml.Schema
                                        this.missingIDReferences.ToArray (typeof (string)) as string []));
 
                        switch (reader.NodeType) {
+                       case XmlNodeType.XmlDeclaration:
+                               this.nonDefaultAttributeCount = reader.AttributeCount;
+                               break;
                        case XmlNodeType.Element:
                                nonDefaultAttributeCount = reader.AttributeCount;