Bulk Validator
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.
Re: Bulk Validator
Hey, that is pretty handy. Thanks!