I’m using JTidy in order to parse web page data.
My question is the following:
It is possible to call the XPath.evalate method on a previously retrieved node?
I’ll explain better.
Usually you use the xmlPath.evaluate(pattern, document, XPathConstants.NODE) method call to retrieve a list of nodes matching your xpath expression.
Once tht i’ve retrieved a node or nodeList, how can I do xmlPath.evaluate starting from the previous retrieved node, something similar to
xmlPath.evaluate(pattern, node, XPathConstants.NODE)
Yes, I think it is possible:
Returns: