Changed XPath library from libxmljs to xpath with xmldom