
Recently while building a site and validating it I thought it might be cool to try to create a Flash Application that would validate a given URL’s HTML. So I traveled to http://validator.w3.org/
Now some of the following information may have been available elsewhere but I like to make life hard for myself so this details the steps I took. Upon entering a URL to be validated I found that the URL obviously gets appended to the validator URL like such:
http://validator.w3.org/check?uri=www.some.com
So doing some Google’n resulted in me finding this post:
w3cValidatorWebService
This information is available on the W3C’s website as well though. So I then saw I could get XML back! You will note upon using the application that it tells you not to rely on what comes back because it WILL change. But this was a proof of concept so we don’t care about that.
Take a look and let me know what you think. For now you have to download it (in swf or enhanced-exe format) because it will not work online as it accesses cross-domain xml and that is a no-no in Flash without the proper rights/files. So download it and run it on your desktop.
Again – this was just a test and a chance to use Flash’s xPath and CSS support. If anyone likes it maybe we will add some more functionality to it – like maybe using Zinc to somehow allow you to drag an HTML file onto the window to upload and validate it if possible.