From ae4a470206eac9e1a750b00af1650fdf272cfe77 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 20 Sep 2002 04:36:16 +0000 Subject: * Another fix to the Depth property to handle a more complex heirarchy. svn path=/trunk/mcs/; revision=7636 --- mcs/class/System.XML/System.Xml/XmlTextReader.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mcs/class/System.XML/System.Xml') 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 -- cgit v1.2.3