Changing HTML into DOM
Is in Java (sic!) any function which could change HTML placed in string into DOM T开发者_如何学Pythonree?
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]");
精彩评论