Your Account
Hear us Roar
replace
NodeSet nodes = (NodeSet) xPath.evaluate(expression, inputSource, XPathConstants.NODESET); NodeList nodeList=(NodeList)nodes;
with
com.sun.org.apache.xml.internal.dtm.ref.DTMNodeList nodeList = (com.sun.org.apache.xml.internal.dtm.ref.DTMNodeList) xPath.evaluate(expression, inputSource, XPathConstants.NODESET);