quickcheck.pl - a simplistic command-line too to validate local files

Dear www-validator,

I am sending in a rather quick (and dirty?) script that can be used  
from the command line to validate files on a local hard drive.

It's a tiny script, rather crude, but I suppose it could be useful to  
some people. It should work on any system with perl and LWP  
installed. I'm sure there are dozens of similar ways to do it, of  
course...

It's using the "poorman's" web service interface of the W3C markup  
validator (via the X-W3C-Validator-* HTTP headers), a little hack we  
are actually in the process of finally completing with a proper,  
documented SOAP Web Service.

It will take as argument a path to one or more local files on your  
hard drive, and will upload them sequentially to the validator, e.g:
% ./quickcheck.pl stuff/*.html
Validating stuff/test-invalid.html ... Invalid - 12 error(s)
Validating stuff/test-link.html ... Valid
Validating stuff/test-valid.html ... Valid

That's it. No warrantee or anything, but if you want to take it and  
hack away, be my guest.
For more elaborate needs in terms of batch validation, there is also  
the Log Validator:
http://www.w3.org/QA/Tools/LogValidator/

Thanks,
-- 
olivier Thereaux - W3C - http://www.w3.org/People/olivier/
W3C Open Source Software: http://www.w3.org/Status

Received on Thursday, 20 October 2005 22:27:48 UTC