code: public static Node getElement(Node node, String xExpr, XPath xPath) throws XPathExpressionException {
          return (Node) xPath.compile(xExpr).evaluate(node, XPathConstants.NODE);
      }
docs: Extracts a single node for the specified XPath expression.
  
  @param node  the node
  @param xExpr expression
  @param xPath the x path
  @return Node
  @throws XPathExpressionException the xpath expression exception