code: public static NodeList evaluateXpathExpression(Document dom, String xpathExpr)
  			throws XPathExpressionException {
  		XPathFactory factory = XPathFactory.newInstance();
  		XPath xpath = factory.newXPath();
  		XPathExpression expr = xpath.compile(xpathExpr);
  		Object result = expr.evaluate(dom, XPathConstants.NODESET);
  		return (NodeList) result;
  	}
docs: Returns the list of nodes which match the expression xpathExpr in the Document dom.
  
  @param dom       the Document to search in
  @param xpathExpr the xpath query
  @return the list of nodes which match the query
  @throws XPathExpressionException On error.