- From: David Håsäther <hasather@gmail.com>
- Date: Thu, 07 Sep 2006 22:10:30 +0200
- To: Janet Coggins <jhcoggins@bellsouth.net>
- CC: www-validator@w3.org
On 2006-09-07 02:11, Janet Coggins wrote: > Below is a list of the warning message produced when validating my > document. I read the comment, that this is not a valid error, but how > do I get rid of it? > > 1. Warning Line 7 column 37: processing instruction does not > start with name. > > <? xml version="1.0" encoding="UTF-8"?> ^ The error is that you have a space between the '<?' and the processing instruction target. It should be <?xml version="1.0" encoding="UTF-8"?> When fixing this you will run into a new problem though, as the XML declaration is only allowed at the start of a document. This means that you'll have to delete or move the comment declaration at the start of the document. Your prolog should look something like: <?xml version="1.0" encoding="UTF-8"?> <!-- Author: Janet Coggins Purpose: Basic HTML template Date Written:August 30, 2006 Last Update: September 1, 2006 --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> HTH. -- David Håsäther
Received on Thursday, 7 September 2006 20:10:51 UTC