diff options
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-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 |