Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

JXPath 1.1 vs. 1.3



Hi There.

I have been using jxpath 1.1 for extracting data from webpages using the following process.
1) Create DOM Document from webpage
2) Create jxpath context from the document
JXPathContext context = JXPathContext.newContext(document);
3) Search the Document using standard xpath notation
context.iteratePointers("//form[@name='form1']");

This is working fine in jxpath 1.1.
However, if I follow the exact same steps using jxpath 1.3 I get no results from the iteratePointers call.

Has anyone else had any similar problems?
Am I supposed to be using 1.3 differently to 1.1?