Error with sitemap XML declaration on second line
-
I have just recently started seeing this error appear with my sitemap:
This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.The error, I believe, is because the <?xml /> declaration is on the second line instead of the first line.
[this line is blank] <?xml version="1.0" encoding="UTF-8"?> [this line is blank] <!-- Sitemap dynamically generated by All in One SEO Pack 2.2.4.2 by Michael Torbert of Semper Fi Web Design on Wed, 14 Jan 2015 04:04:10 UTC --> <?xml-stylesheet type="text/xsl" href="https://vitzkrieg.net/wp-content/plugins/all-in-one-seo-pack/sitemap.xsl"?> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Error with sitemap XML declaration on second line’ is closed to new replies.