XHTML Validator question

> 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 UTC