O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

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

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 ...

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