Here you can find the source of getXPathNodes(XPath xpath, Object inic, String name)
static private NodeList getXPathNodes(XPath xpath, Object inic, String name) throws XPathExpressionException
//package com.java2s; //License from project: Open Source License import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathExpressionException; import org.w3c.dom.NodeList; public class Main { static private NodeList getXPathNodes(XPath xpath, Object inic, String name) throws XPathExpressionException { return (NodeList) xpath .evaluate(name, inic, XPathConstants.NODESET); }/*from www . j a v a 2 s . c o m*/ }