public < T > T eval ( XMLResource resource , Class < T > aReturnType ) throws Exception { T retVal = ( T ) xPathExpression . evaluate ( resource . doc ( ) , getConstant ( aReturnType ) ) ; return retVal ; }
Evaluate the XPath on an XMLResource and convert the result into aReturnType .