views:

138

answers:

1

Is in Java (sic!) any function which could change HTML placed in string into DOM Tree?

+1  A: 

Plug: Have a look at jsoup (an open source Java HTML library I just released). Gives a CSS and jquery-like syntax to getting at the data, in addition to the tradition DOM methods.

Document doc = Jsoup.parse(html);
Elements links = doc.select("a[href]");
Jonathan Hedley