W3 validator gives Different validation results when validated through web service soap12 (in javascript using XMLHttpRequest) against online over the validator.w3.org site

Hi,

I am using W3C html validator service to validate my html content. I am doing it programmatically by calling the service (soap12 response) through javascript XMLHttpRequest using the below code:

var encodedContent = '<some html content>';
xmlHttp = CreateXMLHttpRequest();
    var params = "fragment=" + encodedContent ;
    xmlHttp.open("POST", "http://validator.w3.org/check", false);
    xmlHttp.setRequestHeader("Content-length", params.length)
    xmlHttp.send(params);

What I am finding is, for a similar html content the validation results I am getting within the soap response from the service is different than what I am getting on the validator.w3.org as I pass the same HTML content as direct input on the site. Both provide different number of errors and warnings.. Some are common but the difference sometime is like soap call is giving 2 errors and on site its giving 20.

Any hint?

Regards,
Mahavir


________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

Received on Thursday, 4 August 2011 14:57:58 UTC