diff options
author | Adam Treat <adam@mono-cvs.ximian.com> | 2002-09-20 08:36:16 +0400 |
---|---|---|
committer | Adam Treat <adam@mono-cvs.ximian.com> | 2002-09-20 08:36:16 +0400 |
commit | ae4a470206eac9e1a750b00af1650fdf272cfe77 (patch) | |
tree | 832fb6caadf88862b76f7954a47960640fb1b0f9 | |
parent | ec02f3a0bcc44c3d32dfbdf92b59a74ed6bc5d19 (diff) |
* Another fix to the Depth property to handle a more complex heirarchy.
svn path=/trunk/mcs/; revision=7636
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextReader.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlTextReader.cs b/mcs/class/System.XML/System.Xml/XmlTextReader.cs index 7fe550e53e5..efb48699ad4 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextReader.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextReader.cs @@ -855,7 +855,9 @@ namespace System.Xml Expect ('>'); if (!depthDown) - ++depth; + ++depth; + else + depthDown = false; SetProperties ( XmlNodeType.Element, // nodeType |