Quantcast
Viewing all articles
Browse latest Browse all 3201

ellimerino on "[Plugin: Google XML Sitemaps] Sitemap not valid XML due to blank line at the top"

Hi,

The plug-in is inserting a blank line at the top of the sitemap XML file, which turns it into invalid XML (the XML spec requires the XML header be on line 1 of the file).

So, if I try to look at the XML file using a web browser, for example, the browser immediately barfs because it's not valid XML and so won't parse correctly.

Webkit based browsers say:

"This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document"

:-(

https://wordpress.org/plugins/google-sitemap-generator/


Viewing all articles
Browse latest Browse all 3201

Trending Articles