public static Node getElement ( Node node , String xExpr , XPath xPath ) throws XPathExpressionException { return ( Node ) xPath . compile ( xExpr ) . evaluate ( node , XPathConstants . NODE ) ; }
Extracts a single node for the specified XPath expression .