2006-04-27 Geoff Norton <gnorton@customerdna.com>
authorGeoff Norton <grompf@sublimeintervention.com>
Thu, 27 Apr 2006 19:04:56 +0000 (19:04 -0000)
committerGeoff Norton <grompf@sublimeintervention.com>
Thu, 27 Apr 2006 19:04:56 +0000 (19:04 -0000)
        * XmlDocument.cs: Move back to the element after
        reading an attribute.  This mimics Microsofts behaviour.

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

mcs/class/System.XML/System.Xml/ChangeLog
mcs/class/System.XML/System.Xml/XmlDocument.cs

index 8844812047d27c7004d15e6bccb8dc9a8a4920fb..0703dea365fdd37f3d727934816fde93956c1c7d 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-27  Geoff Norton  <gnorton@customerdna.com>
+
+       * XmlDocument.cs: Move back to the element after
+       reading an attribute.  This mimics Microsofts behaviour.
+
 2006-04-21  Atsushi Enomoto <atsushi@ximian.com>
 
        * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
index 9a5873e728ba8ec9524e4557a3361d35735f78d1..d87712dbd4cd895d4e016e343eada8d93bf625c7 100644 (file)
@@ -868,6 +868,7 @@ namespace System.Xml
                                        reader.MoveToAttribute (i);
                                        element.SetAttributeNode (
                                                ReadAttributeNode (reader));
+                                       reader.MoveToElement ();
                                }
                                // FIXME: the code below should be fine and
                                // in some XmlReaders it is much faster, but