Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.ResetState Method

Resets the XmlTextReader.ReadState to ReadState.Initial. [Edit]

public void ResetState ()

Exceptions

TypeReason
InvalidOperationExceptionThe current instance was constructed with a System.Xml.XmlParserContext. [Edit]

Remarks

The XmlTextReader.Normalization, XmlTextReader.WhitespaceHandling, XmlTextReader.Namespaces, and XmlTextReader.XmlResolver properties are not changed by this method.

Note:

This method enables the parsing of multiple XML documents in a single stream. When the end of an XML document is reached, this method resets the state of the current instance in preparation for the next XML document.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0