upgraded XPath library with tweak to allow binding on any document