Jsoup’s connect method

In my previous post under Jsoup, I showed with example how to parse an html document located on world wide web using overloaded “parse” method. In this post, I will show with example another approach of doing the same thing. The Jsoup javadoc recommends to follow this approach instead of using overloaded “parse” method. Below…… Continue reading Jsoup’s connect method

Parsing an HTML fragment as a body of new html document

In this post under Jsoup, I will explain with example how to parse a html fragment as a body of a new html document. Suppose you have a html fragment as shown below <a href=’wwww.google.com’/> Which you want as body of a new html document as shown below for your reference <html> <head></head> <body> <a…… Continue reading Parsing an HTML fragment as a body of new html document