Xpath Exception XPathImpl.evaluate Read error

blackops7799

New Member
Xpath Exception XPathImpl.evaluate Read error\[code\]String expression ="/catalog/journal[@title='Java Technology']/article";NodeSet nodes = (NodeSet) xPath.evaluate(expression, inputSource,XPathConstants.NODESET); NodeList nodeList=(NodeList)nodes; System.out.println(nodeList.getLength());\[/code\]xml file is as following \[code\] <journal title="Java Technology" publisher="IBM developerWorks"> <article level="Intermediate" date="January-2004" section="Java Technology"> <title>Service Oriented Architecture Frameworks </title> <author>Naveen Balani </author> </article> <article level="Advanced" date="October-2003" section="Java Technology"> <title>Advance DAO Programming</title> <author>Sean Sullivan</author> </article> <article level="Advanced" date="May-2002" section="Java Technology"> <title>Best Practices in EJB Exception Handling </title> <author>Srikanth Shenoy </author> </article> </journal> \[/code\] giving exception please give help me that how to give xpath.
 
Back
Top