Re: PHP Library to the HTML Validator API

Hi Brett,
That's cool.

Le 4 janv. 2007 à 07:41, Brett Bieber a écrit :
> http://pear.php.net/package/Services_W3C_HTMLValidator/

More context from the page

     Description
     This package provides an object oriented
     interface to the API of the W3 HTML Validator application
     (http://validator.w3.org/). With this package you can connect
     to a running instance of the validator and retrieve the
     validation results (true|false) as well as the errors and
     warnings for a web page.

      By using the SOAP 1.2 output format from the validator, you
     are returned simple objects containing all the information
     from the validator. With this package it is trivial to build
     a validation system for web publishing.


> Usage example:
> <?php
> require_once 'Services/W3C/HTMLValidator.php';
> $v = new Services_W3C_HTMLValidator();
> var_dump($v->validate('http://www.unl.edu/'));
> ?>


Have you thought about a cache system?
In a workflow, the validation would occur only if the content of the  
page or one of the ancestors has been really modified. To avoid to  
request validation of pages or content already validated.



-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Tuesday, 9 January 2007 06:54:26 UTC