Author: atsushi
Date: 2005-03-07 03:56:33 -0500 (Mon, 07 Mar 2005)
New Revision: 41510
Modified:
trunk/mcs/class/System.XML/System.Xml/ChangeLog
trunk/mcs/class/System.XML/System.Xml/DTDValidatingReader.cs
Log:
2005-03-07 Atsushi Enomoto <[EMAIL PROTECTED]>
* DTDValidatingReader.cs : When there was actual attribute in source
XmlReader, MoveToAttribute(i) did not move source reader as expected.
Modified: trunk/mcs/class/System.XML/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/ChangeLog 2005-03-07 08:42:17 UTC
(rev 41509)
+++ trunk/mcs/class/System.XML/System.Xml/ChangeLog 2005-03-07 08:56:33 UTC
(rev 41510)
@@ -1,3 +1,8 @@
+2005-03-07 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * DTDValidatingReader.cs : When there was actual attribute in source
+ XmlReader, MoveToAttribute(i) did not move source reader as expected.
+
2005-03-03 Atsushi Enomoto <[EMAIL PROTECTED]>
* XmlDocument.cs : In ReadNode(), on EntityReference node, when
Modified: trunk/mcs/class/System.XML/System.Xml/DTDValidatingReader.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/DTDValidatingReader.cs
2005-03-07 08:42:17 UTC (rev 41509)
+++ trunk/mcs/class/System.XML/System.Xml/DTDValidatingReader.cs
2005-03-07 08:56:33 UTC (rev 41510)
@@ -221,9 +221,11 @@
}
if (currentElement == null)
- return;
+ throw new IndexOutOfRangeException ("The index
is out of range.");
if (attributes.Count > i) {
+ if (reader.AttributeCount > i)
+ reader.MoveToAttribute (i);
currentAttribute = (string) attributes [i];
consumedAttribute = false;
return;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches