XhtmlValidator 0.2 released
XhtmlValidator 0.2 is available as a source or binary distribution.
XhtmlValidator is a tiny Java library for programmatically validating XHTML. Version 0.2 fixes a bug with the list of errors produced by parsing a non valid XHTML document and adds JavaDoc to the release.
Thanks to Ahmed Hashim for spotting the bug.

August 31st, 2006 at 8:21 am
Hi George,
Thank you for fixing the defect, actually your xhtml validator is simple and nice, it is doing the job using XML API’s.
I am working now days in the Web standards and almost all my projects restrict to XHTML, so I am trying to make XHTML validation as unit testing which will reduce a lot of work and time, instead of validating the html in w3c validator site.
I tried the latest version from the validator 0.2 and I got another problem, if the page contain a fatal error, the validator will not continue validating the page and will stop. If the page contain errors or warning, it will work fine and return multiple errors. In my case, the fatal errors are important to figure out to fix it and should be reported to the developer to fix it, so I should have all errors in the page not only errors but also fatal errors.
How can I contribute to your projects?
September 6th, 2006 at 8:52 pm
Hi!
Interesting work. I am wondering if the library is validating also HTML fragments or is it bound to work only with full XHTML?
./alex
–
.w( the_mindstorm )p.
September 6th, 2006 at 9:15 pm
XhtmlValidator will only do XHTML for a number of reasons:
Only the XHTML DTDs are included in the distribution. The library uses those to validate documents. Any other XML can be validated, provided the relevant DTD can be accessed.
javax.xml.parsers.DocumentBuilderFactory is used and is set to validating = true. This means that only well formed XML will get parsed, and HTML doesn’t fall in this category.
It would only take a few really minor changes to accommodate HTML validation, but I would rather not put those in a release, because HTML is not well formed and it kind of beats the whole purpose of the library in my opinion.