public < T > T get ( String xPath , Class < T > returnType ) throws Exception { XPathQuery xp = new XPathQuery ( xPath ) ; return xp . eval ( this , returnType ) ; }
Access the XML evaluating an XPath on it returning the resulting Object of the desired type Supported types are NodeList String Boolean Double Node .