// -------------------------------------------------------------------------
protected void testXPath(Node node, String xpathText) throws Exception {
try {
XPath xpath = node.createXPath(xpathText);
Number number = xpath.numberValueOf(node);
log("Searched path: " + xpathText + " found: " + number);
} catch (Throwable e) {
log("Caught exception: " + e);
e.printStackTrace();