zengun

weblog

20021029

a W3C validator webservice

Simon Willison took advantage of the W3C’s new (beta) validator’s XML output to write an XMLRPC interface for it.
I’ve been toying with it for an hour with a simple command line script, and it’s pretty nice. There’s just a nasty bug in PHP’s XML parser, that makes Simon’s interface return only the last part of messages that have a double quote in them.
The fix/workaround is rather simple (see my last comment on Simon’s post), and until Simon applies that fix, you can still use my installation of the webservice to get complete messages. Just use ‘tidakada.com’ instead of ’scripts.incutio.com’ as your host.

Small Update: If you feel like using this webservice, yet don’t know how to code an xmlrpc client, and you have a version of PHP compiled as CGI on your computer, here’s a simple PHP command line client. Just run it like this: validate http://someurl.com.


2 responses

  1. Michelllllll!!!!!!! *screams*

    Nah. No. :) Just thought I’d say hello. :) It’s been soooooo long!

    #1 Dican2002/10/29 at 1:32

  2. Hey Dican :)
    Yeah, it’s been a while! It’s funny, I was just reviewing some blogs to add to my links, and I thought of yours, and there you come and comment :D

    #2 michel — 2002/10/29 at 2:19

Your words


Required fields:
Are marked by this sign: *
XHTML:
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
On comment spam/irrelevance:
Your comment may be moderated or considered as spam by the leprechauns running this server. If you get a 412 error or a mean message, it may be that they thought it was spam: try wording the comment differently or remind me to put up a contact form so you can warn me about the problem.
Of course, once the leprechauns are done doing their magic, I reserve the right to delete any comment for any reason.