What is XPath?
XPath is a query language defined for XML that provides a simple syntax to select the subset of nodes in a document. With XPath, you can retrieve collections of elements by specifying a directory-like path (hence the name) as well as conditions placed on the path. XPath is critical both for XSLT and the XML DOM, and also has ties to the XPointer specification (which lets you select fragments of documents based on combinations of Uniform Resource Locators [URLs] and XPath expressions).