Does anyone know of an xPath to JSoup convertor? I get the following xPath from Chrome:
//*[@id=\"docs\"]/div[1]/h4/a
and would like to c
I have tested the following XPath and Jsoup, it works.
example 1:
[XPath]
//*[@id="docs"]/div[1]/h4/a
[JSoup]
document.select("#docs > div > h4 > a").attr("href");
example 2:
[XPath]
//*[@id="action-bar-container"]/div/div[2]/a[2]
[JSoup]
document.select("#action-bar-container > div > div:eq(1) > a:eq(1)").attr("href");