[VE][47] End of document in prolog error using locally installed W3C validator

Hi,
 
I'm trying to get the W3C validator running on my server so I can validate internal intranet sites without having to copy and paste the HTML source. I've got the validator itself running and can access the front page, however any attempt to validate anything gives the following error:

Error [47]: "end of document in prolog"
I installed the validator using apt-get install w3c-markup-validator on Ubuntu 10.04 Desktop. Most other instances of the error above seem to relate to the validator being unable to retrieve the source code, however I get this error whether I do a file upload, direct input or check using a URL. Also, if I do a check using a URL, the source code is loaded successfully and displayed underneath, but I still get the error above reported against line 1 col 0. (The URL itself doesn't matter - Google, Microsoft, Amazon etc all return the correct source code but still give the same error).
 
If I run the following command given by the validator manually:
/usr/bin/onsgmls -n -c /usr/share/w3c-markup-validator/catalog/sgml.soc -R -wvalid -wnon-sgml-char-ref -wno-duplicate
I get the following error message:
/usr/bin/onsgmls:14190260.2208:E: cannot find "/usr/share/w3c-markup-validator/catalog/sgml.soc"; tried
I can then type in or paste HTML and then see a set of results - various things like 'ATARGET IMPLIED' etc so I assume its able to validate the document?
 
Since every example of 'end of document in prolog' I can find mentioned online also has the symptom of missing HTML source I don't really know where to look next.
 
Thanks in advance
Ian


This message and any attachments are intended for the persons named as addressees only and may contain confidential information. In addition they may be protected by copyright. 

If you receive it in error, notify us, delete it and do not make use of or copy it. You must not copy, disseminate or otherwise distribute or publish this message, except for the purposes for which this message is intended, without our consent. 

Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and accept this lack of security when e-mailing us.

For company information, guidance and how to file documents online,
please see our website www.companieshouse.gov.uk.

This message has been scanned for viruses by Hosted Security, a service from Websense.

Received on Friday, 12 November 2010 08:25:14 UTC