O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with the XmlTextReader

The XmlTextReader is a fast, forward-only, read-only XML parser. Since the XmlTextReader is a forward-only reader, very little data is cached while parsing the XML stream. This allows for the XmlTextReader to parse a document while using a small footprint. The XmlTextReader does not provide any validation beyond checking the well-formedness of the XML. Since no validation is performed while reading the document, the XmlTextReader provides fast XML parsing.

The XmlTextReader throws an XmlException if it encounters an error parsing the XML stream. Although this allows you to catch the exception and continue parsing, this is not recommended. The state of the XmlTextReader is unpredictable after it has thrown an XmlException ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required