Re: AW: Report page in validation service is not well-formed XML when the validation was successful

On 3-Jun-08, at 3:31 PM, Svensson, Lars wrote:
>> If you're going to parse validation results as XML, I would strongly
>> recommend, instead of screen-scraping the HTML output, to use:
>> http://jigsaw.w3.org/css-validator/api.html
>
> I always thought that one of the rationales for XHTML was that it  
> should
> be possible to scrape the documents using an XML parser, thus
> eliminating the need for multiple response formats just to get an XML
> version for machine processing. I'll check out the SOAP version,  
> though.

You are right, XHTML can be parsed and processed, but we can not  
guarantee that the XHTML output will not change over time. The API, on  
the other hand, will change - if at all - in a compatible manner,  
changes will be announced and reviewed, etc.

-- 
olivier

Received on Tuesday, 3 June 2008 19:34:48 UTC