Hi all,
Currently i would like to remove all whitespaces between html tags and
comments in a html file. Is there any good html parser api i could
use to achieve that?
Appreciate any inputs.
Tajonis - 10 Apr 2006 14:28 GMT
If you are looking to simply clean up the HTML itself then have a look
@ http://jtidy.sourceforge.net/
Other wise if you really want to parse out HTML elements then you can
look at http://java-source.net/open-source/html-parsers
Roedy Green - 10 Apr 2006 17:59 GMT
>Currently i would like to remove all whitespaces between html tags and
>comments in a html file. Is there any good html parser api i could
>use to achieve that?
http://mindprod.com/products1.html#COMPACTOR will take out excess
white space.
http://mindprod.com/products1.html#ENTITIES will take out tags and
convert entities.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.