W3C home > Mailing lists > Public > www-validator@w3.org > January 2007

Re: PHP Library to the HTML Validator API

From: Karl Dubost <karl@w3.org>
Date: Tue, 9 Jan 2007 15:54:01 +0900
Message-Id: <8CC591BF-FC9B-4C70-9E96-3E44FD84949F@w3.org>
Cc: www-validator@w3.org
To: Brett Bieber <brett.bieber@gmail.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:23 GMT