From 9f3e358a8b395e8bdb62ec72e3e6a20c07da7735 Mon Sep 17 00:00:00 2001 From: Geoff Norton Date: Thu, 27 Apr 2006 19:04:56 +0000 Subject: [PATCH] 2006-04-27 Geoff Norton * 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 | 5 +++++ mcs/class/System.XML/System.Xml/XmlDocument.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog index 8844812047d..0703dea365f 100644 --- a/mcs/class/System.XML/System.Xml/ChangeLog +++ b/mcs/class/System.XML/System.Xml/ChangeLog @@ -1,3 +1,8 @@ +2006-04-27 Geoff Norton + + * XmlDocument.cs: Move back to the element after + reading an attribute. This mimics Microsofts behaviour. + 2006-04-21 Atsushi Enomoto * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not diff --git a/mcs/class/System.XML/System.Xml/XmlDocument.cs b/mcs/class/System.XML/System.Xml/XmlDocument.cs index 9a5873e728b..d87712dbd4c 100644 --- a/mcs/class/System.XML/System.Xml/XmlDocument.cs +++ b/mcs/class/System.XML/System.Xml/XmlDocument.cs @@ -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 -- 2.25.1