XPath « javax.xml.xpath « Java by API






1.XPath: compile(String expression) throws XPathExpressionException
2.XPath: evaluate(String expression, Object item)