Working with XPath

The System.Xml.Xpath namespace provides several classes designed to provide programming support for evaluating XPath expressions against XML data stores. In this section, we'll examine how to leverage these classes to query XML documents and evaluate build XPath expressions.

Navigating XML Documents

The XPathNavigator class is designed to enable you to quickly and easily traverse the attribute nodes of an XML document. The class uses XPath expressions and implements a cursor-based reader over a variety of different data stores. Unlike the XmlTextReader, XPathNavigator objects exist to provide random access. You instantiate an instance of an XPathNavigator by calling the CreateNavigator class on either the XmlNode class, the ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.