Can anyone recommend me a java library to allow me XPath Queries over URLs? I've tried JAXP without success.
Thank you.
Can anyone recommend me a java library to allow me XPath Queries over URLs? I've tried JAXP without success.
Thank you.
I've used JTidy to make HTML into a proper DOM, then used plain XPath to query the DOM.
If you want to do cross-document/cross-URL queries, better use JTidy with XQuery.
You could use TagSoup together with Saxon. That way you simply replace any XML SAX parser used with TagSoup and the XPath 2.0 or XSLT 2.0 or XQuery 1.0 implementation works as usual.