Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. XML > Query XML Using XPath

Query XML Using XPath

Scenario/Problem:You need to query a document for specific information by using the XML query language XPath.
Solution:In addition to reading XML the traditional way, via XmlDocument or XmlTextReader, you can use XPathDocument and related classes to query XML using XPath, a query language defined for XML.

Here is our source XML file (LesMis.xml):


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint