/** * Evaluates an XPath expression as a DOM NodeList. If the evaluation fails, * null will be returned. * * @return The evaluation result. */ public NodeSet getNodes(String expression) { final NodeList nodes = (NodeList) internalEval(expression, XPathConstants.NODESET); return (nodes == null) ? null : new NodeSet(nodes); }