O'Reilly logo

Applied XML Programming for Microsoft® .NET by Dino Esposito

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

The Programming Interface of Readers

XmlReader is an abstract class available from the System.Xml namespace. It defines the set of functionalities that an XML reader exposes to let developers access an XML stream in a noncached, forward-only, read-only way.

An XML reader works on a read-only stream by jumping from one node to the next in a forward-only direction. The XML reader maintains an internal pointer to the current node and its attributes and text but has no notion of previous and next nodes. You can’t modify text or attributes, and you can move only forward from the current node. If you are visiting attribute nodes, however, you can move back to the parent node or access an attribute by index. The visit takes place in node-first order, ...

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