W3C home > Mailing lists > Public > www-validator@w3.org > August 2000

Re: XHTML Validator question

From: Christian Smith <csmith@barebones.com>
Date: Mon, 7 Aug 2000 14:59:32 -0400
To: www-validator@w3.org
cc: "Mcguigan, Thomas C (Tom), NBSO" <tmcguigan@att.com>
Message-ID: <20000807145933-f01010601-eb4902e4@>
On Monday, August 07, 2000 at 14:30, tmcguigan@att.com (Mcguigan, Thomas C (Tom), NBSO) wrote:

> I hope that you can help me with an XHTML question:
> In the XHTML specification, the following appears:
> "Note that in this example, the XML declaration is included. An XML
> declaration like the one above is not required in all XML documents. XHTML
> document authors are strongly encouraged to use XML declarations in all
> their documents. Such a declaration is required when the character
> encoding of the document is other than the default UTF-8 or UTF-16."
> However, when I include the XML declaration:
> 	<?xml version="1.0" encoding="UTF-8"?>
> as the first line on my page, the latest version of Validator flags this
> as an error.  If I remove the declaration, and have my DOCTYPE declaration
> as the first line, the page passes validation.
> Is there a problem with the validator, or should I not be including the
> XML declaration.
> Thank you for clarifying this for me.

An example file would be useful. I've validated XHTML files with 

<?xml version="1.0" encoding="UTF-8"?>

in them with no errors.

Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com

He who dies with the most friends... Is still dead!
Received on Monday, 7 August 2000 14:58:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:27 UTC