开发者

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]");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜