Validate with Page Authoring Tool

Hey all,

 

I'm building a Web Page Authoring Tool using php, and would like to somehow
include a xhtml validator.

 

The idea would be that the person editing the page would be able to run the
validator before publishing the page, if any errors are found it would
display these in a simple way, if none are found it would publish the page.

 

I'm currently writing a script that will send the page as postdata straight
to http://validator.w3.org/check, then check the output of the page, and
display the results.

 

Are there any problems with me doing this?

 

The other option would be to include a script to validate it, does anyone
know if there are already ones? Or will I have to write it myself? If so how
would I go about it?

 

Cheers

 

Alec

 

 

Received on Friday, 18 August 2006 16:21:05 UTC