Checking html closing tags using java -


i want check html file closing tags in java. if closing tags not there put closing tag. can please tell me how achieve that.

i used tagsoup that.

a sax-compliant parser written in java that, instead of parsing well-formed or valid xml, parses html...

tagsoup free , open source software.