I want to find the important links in a site using Jsoup library. So for this suppose we have following code:
<h1><a href="http://example.com">This is important </a></h1>
Now while parsing how can we find that the tag a is inside the h1 tag?
I want to find the important links in a site using Jsoup library. So for this suppose we have following code:
<h1><a href="http://example.com">This is important </a></h1>
Now while parsing how can we find that the tag a is inside the h1 tag?
You can do it this way:
Taken from the JSoup Cookbook.