I am using JSOUP to extract the data.
I have a html file:
=
<ul>
<li>
<i>
<a class="Class1" title="title1" href=""www.title1.com">title1</a>
</i>
(one)
</li>
<li>
<i>
<a title=title2" href="www.title2.com">title2</a>
</i>
(two)
</li>
<li>
<i>
<a title="title3" href=""www.title2.com">title3</a>
</i>
(three)
</li>
</ul>
How to use JSOUP to print title1,title2 and title3,
2) How to print the hrefs?
Pretty easy:
Have you looked here?
Also make sure the HTML is well formed. e.g. matching quotes
The HTML output above is not well formed, for instance:
JSoup requires valid HTML.