Can you put together a small test case that illustrates the problem? Matt
On Tue, Mar 12, 2013 at 6:49 AM, MASTRELLA STEFANO <[email protected]>wrote: > > Hi all, > > I'm trying to use jxpath-1.3 to query the content of some tags within an > html fragment. > Given the file 'html.frag.response.html' I want to explore all the TR > tag in the document. > > For what I know I can do this stuff with the following lines of code: > > String tableFragment = loadfromthefile(); > > JXPathContext context = JXPathContext.newContext(tableFragment); > > Iterator it = context.iteratePointers("//TR"); > > while (it.hasNext()) { > Pointer msgPointer = (Pointer) it.next(); > > msgPointer.asPath(); > > System.out.println(msgPointer); > > What I get is always an empty Iterator so there's nothing to iterate on, > as there were no TR tag > in the document. > > What am I doing wrong? > > TIA. > > --- > Stefano > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
