About XPath

  XPath is a language for finding information in an XML document. XPath is used to navigate through elements and attributes in an XML document.XPath is a major element in the W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions. So an understanding of XPath is fundamental to a lot of advanced XML usage.

 

  What is XPath?
1.XPath is a syntax for defining parts of an XML document
2.XPath uses path expressions to navigate in XML documents
3.XPath contains a library of standard functions
4.XPath is a major element in XSLT
5.XPath is a W3C Standard

  XPath Path Expressions
XPath uses path expressions to select nodes or node-sets in an XML document. These path expressions look very much like the expressions you see when you work with a traditional computer file system.

  We will use the following XML document in the examples below.

<?xml version="1.0" encoding="ISO-8859-1"?><bookstore><book>
  <title lang="eng">Harry Potter</title>
  <price>29.99</price>
</book><book>
  <title lang="eng">Learning XML</title>
  <price>39.95</price>
</book></bookstore>
 
  After I've read this wedsite.I learned how to use XPath to navigate through elements and attributes in an XML document.And I also learned how to use some of the standard functions that are built-in in XPath.So I do understand what is XPath doing.That's really great!