W3C home > Mailing lists > Public > www-validator@w3.org > October 2005

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

From: olivier Thereaux <ot@w3.org>
Date: Fri, 21 Oct 2005 07:27:41 +0900
To: www-validator community <www-validator@w3.org>
Message-Id: <2B8740A3-0CB2-4D75-A5AA-CE4D9D02480A@w3.org>
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  

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:

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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:47 UTC