XML XPath
<!DOCTYPE html> <html> <body> <pre> <!-- Document: <catalog> <book category="fiction"> <title>Night Watch</title> <price>18.50</price> </book> <book category="reference"> <title>XML Essentials</title> <price>34.00</price> </book> </catalog> --> /catalog/book -> both <book> elements /catalog/book[1] -> the first <book> (Night Watch) //title -> every <title> anywhere in the document /catalog/book[@category='reference'] -> the book with that attribute value /catalog/book[price>20]/title -> titles of books priced above 20 </pre> </body> </html>