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