You'll see this error if the parser doesn't recognize a valid Sitemap file. Here are a few things to check if you see this error:
- Confirm that the file uses the correct header. For a Sitemap file, the header can look like this:
<?xml version="1.0" encoding="UTF-8"?>
For a Sitemap index file, the header can look like this:
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"><?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84"> - Ensure the namespace in the header is "http://www.google.com/schemas/sitemap/0.84". Note that this must end in 0.84. If it ends in .84, you'll see an error.
- Make sure each XML attribute is enclosed in either single quotes (') or double quotes (") and that those quotes are straight, not curly. If you use a word processing program, such as Microsoft Word, you may find that it inserts curly quotes.