Library to query HTML with XPath in Java?

后端 未结 5 426
失恋的感觉
失恋的感觉 2020-12-03 16:31

Can anyone recommend me a java library to allow me XPath Queries over URLs? I\'ve tried JAXP without success.

Thank you.

5条回答
  •  余生分开走
    2020-12-03 17:09

    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.

提交回复
热议问题