The xmlTree API supports the XPath 1.0 W3C Recommendation.
When you want to perform XPath searches on XML data, you create a
xmlXPath object from the xmlDoc. Then namespaces can be
registered to the XPath, and searches can be performed through it.
See the Using XPath section (here) for
more information.