Skip to the Main Content

Note:These pages make extensive use of the latest XHTML and CSS Standards. They ought to look great in any standards-compliant modern browser. Unfortunately, they will probably look horrible in older browsers, like Netscape 4.x and IE 4.x. Moreover, many posts use MathML, which is, currently only supported in Mozilla. My best suggestion (and you will thank me when surfing an ever-increasing number of sites on the web which have been crafted to use the new standards) is to upgrade to the latest version of your browser. If that's not possible, consider moving to the Standards-compliant and open-source Mozilla browser.

November 19, 2006

Bulk Validator

Validator Logo

Maybe everyone else knew about this, but I recently stumbled upon Validator, a bulk XML (including XHTML1) validator. It features a GUI interface for MacOSX and Windows and a commandline tool for Linux.

Hand it a file, and it will validate it. Hand it a directory, and it will happily recurse through all subdirectories, validating every XML file it can find.

At least on my system, I needed to install XML::LibXML. For commandline use, I added

alias validate '/usr/bin/perl /Applications/Validator.app/Contents/Resources/script /Applications/Validator.app \!$'

to my .cshrc file. Now I can do things like

validate ~/Sites/blog/ | grep -v "Valid\|Well-formed"

Sweet!


1 … and DocBook, SMIL, SVG, XML Schema, etc.

Posted by distler at November 19, 2006 7:19 PM

TrackBack URL for this Entry:   https://golem.ph.utexas.edu/cgi-bin/MT-3.0/dxy-tb.fcgi/1067

1 Comment & 0 Trackbacks

Re: Bulk Validator

Hey, that is pretty handy. Thanks!

Posted by: Evan Goer on November 20, 2006 12:22 AM | Permalink | Reply to this

Post a New Comment