© 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 
(1)
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 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.