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

Re: [VE][xmlwf] XML Parsing Error: XML declaration allowed only at the start of the document .

From: David Håsäther <hasather@gmail.com>
Date: Fri, 23 Nov 2007 14:12:30 +0100
Message-ID: <1a296f990711230512q1380adc9qdd025546cef3f38c@mail.gmail.com>
To: "ANNIE.PILOTE@mess.gouv.qc.ca" <ANNIE.PILOTE@mess.gouv.qc.ca>
Cc: www-validator@w3.org

ANNIE.PILOTE@mess.gouv.qc.ca wrote:

> Error [xmlwf]: "XML Parsing Error: XML declaration allowed only at the start
> of the document . "
> NOTE: Whenever possible, give the address of the document you were checking.
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <!-- InstanceBegin template="/Templates/portail.dwt"
> codeOutsideHTMLIsLocked="false" -->
> <?xml encoding='UTF-8'?>

Remove the last line I quoted ("<?xml encoding='UTF-8'?> "). It's an
XML declaration and can only appear at the start of the document.

-- 
David Håsäther
Received on Friday, 23 November 2007 13:12:56 GMT

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