Re: XHTML Validator question

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