Validate XHTML in cronjobs

In my dirty-little-helpers category: How do I check my webpages for XHTML conformity regularly? The W3C validator is ok, however I wanted something I can put in a cronjob.

lynx -source | xmllint --loaddtd --noout -

xmllint is from the libxml2 utils. I left two errors in this blog entry just to illustrate. (Update: I fixed them now.)

Leave a Reply