XmlTextReader
The XmlTextReader class is derived from the XmlReader class. XmlReader provides a fast forward-only cursor for reading XML documents. It simplifies XML by providing some well-defined methods. XmlReader also implements a pull model which has several advantages over the more common push model. First and foremost, the pull model is easier to use. It is just easier for developers to think about while loops than complicated state machines. Although contextual state management is still a challenge with the pull model, it is easier to deal with through procedural techniques that are more natural for most developers.
The pull model can also offer improved performance through a variety of techniques. The XmlReader class makes efficient ...
Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.