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

XHTML Validator question

From: Mcguigan, Thomas C (Tom), NBSO <tmcguigan@att.com>
Date: Mon, 7 Aug 2000 14:30:08 -0400 (EDT)
Message-ID: <C54F3B5225BED311AAB50090276153230261F86A@gab200po05.ems.att.com>
To: www-validator@w3.org
> 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.
> 
> Tom McGuigan
> 
Received on Monday, 7 August 2000 14:36:05 GMT

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