© Bipin Joshi 2017
Bipin JoshiBeginning XML with C# 7https://doi.org/10.1007/978-1-4842-3105-0_4

4. Accessing XML Documents Using the XPath Data Model

Bipin Joshi1 
301 Pitruchhaya, Thane, India

In Chapters 2 and 3, you learned how to read and write XML documents by using the XmlDocument, XmlReader, and XmlWriter classes. These classes allow you to access the underlying documents, but by themselves they hardly provide a way to query and retrieve the data. That is why we need something that allows us to navigate, query, and retrieve data from XML documents easily and efficiently. The XPath standard is designed to do just that.

The .NET Framework namespace System.Xml.XPath provides a complete set of classes that allow you to query and retrieve data ...

Get Beginning XML with C# 7: XML Processing and Data Access for C# Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.