October 20, 2013
the dynamically generated sitemap has an empty line at the beginning of the sitemap.xml file (the static one doesn’t suffer from this but i want it to be dynamically generated).
google can still handle it but when i view the sitemap.xml in firefox or chromium, i get an error:
XML Parsing Error: XML or text declaration not at start of entity
Line Number 2, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>
This is because the first line should have the <?xml …..> part and it is an empty line in my case. How can I fix this? Thank you in advance.
There is no rush of course.