Actually I think that you are totally right... an XML parser with access the the XHTML Strict DTD should do that validation. Will think about it B
________________________________ From: Jevon Wright [mailto:[email protected]] Sent: 23 April 2010 02:57 To: Usage problems for JWebUnit Subject: Re: [JWebUnit-users] Testing for Valid XHTML 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 <[email protected]> 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users =============================================================================== 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
