Right now, the xpath() function uses HtmlCleaner’s implementation. Unfortunately, that implementation is not standards-compliant at all, and is missing the vast majority of XPath 1.0’s capabilities. Java’s built-in library has a complete implementation, so we should rewrite the code in...