
240 • XML & Related Technologies
6.3 XML PATH LANGUAGE (XPATH)
XML provides rich features for describing data with appropriate mark up. However, it does not provide
features for searching data. For example, suppose that we want to search for all the books written by Andrew
Tanenbaum from an XML document. XML does not provide features to accomplish this. Therefore, we need
other technologies to do this job for us.
The XML Path language (XPath) provides a mechanism for searching specific parts (elements or
attributes) of an XML document.
We need to remember the following points about XPath.
• XPath is not a structural language, unlike XML. It ...