Hi Benoit, I don't know of an easy way to do this - however I agree it would be extremely valuable. I think right now the only approach is to download a validating parser from W3.org (or something). I don't know of any validating parsers in Java, but I haven't done an exhaustive search. However if you'd like to propose a patch to include this validating functionality, that would be great!
Since you're using XHTML, one easy solution might be to parse the XHTML with an XML parser - at the very least, this would mean you'd get notified of broken tags, etc. Cheers Jevon On Fri, Apr 23, 2010 at 1:25 AM, Xhenseval, Benoit < benoit.xhense...@credit-suisse.com> wrote: > Hi > > Like my little "spider" test, is there an easy mechanism to check that all > pages are following the document type? Eg. XHTML. > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "* > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd*<http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> > "> > > So I guess some kind of offline validation > (*http://validator.w3.org/*<http://validator.w3.org/>) > would be useful to detect as part of our build… As soon as our webmaster > starts to get too 'fancy' this would be detected… > > Thanks, > > *Benoît Xhenseval > *Project Escape > > > ============================================================================== > Please access the attached hyperlink for an important electronic > communications disclaimer: > http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html > > ============================================================================== > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > JWebUnit-users mailing list > JWebUnit-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > >
------------------------------------------------------------------------------
_______________________________________________ JWebUnit-users mailing list JWebUnit-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-users