开发者

Html Parser using java [duplicate]

开发者 https://www.devze.com 2022-12-20 05:24 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: Is there a validating HTML parser implemented in Java?
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Is there a validating HTML parser implemented in Java?

Hi,

Is there is any API which parse the HTML text using java.

All the function should in the format of Objects

e.g. In the following text i want to Parse the HTML file and parser should return me the list of tags , attribute ..

<开发者_Go百科HTML>
<BODY>
    <INPUT TYPE="text" value="100">
</BODY>
</HTML>

Thanks


Comprehensive list here


Refer to HTML/XML Parser for Java and Is there a validating HTML parser implemented in Java? and finally Which HTML Parser is the best?

These should answer your question nicely.


Regex's should work just fine.... cough

0

精彩评论

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

关注公众号