Query without detailed DOM navigation
e.g. //book[author="Neal Stephenson"]/title to find all books by Neal Stephenson
//book[author="Neal Stephenson"]/title
XPath is not Turing complete but Java is.