Hello,
I'm getting the following error once my sitemap has been generated. It's at the site www.menuanalyser.co.uk if you want to have a look at anything that may help you figure why. I get the following error message:
XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.menuanalyser.co.uk/sitemap.xsl
Line Number 1, Column 3: <?xml version="1.0" encoding="UTF-8"?>
--^
I thought it may be an issue with the sitemap not being generated, but it appears as though it has with the following info:
URL Last updatedsort descending Links Pages Operations
http://www.menuanalyser.co.uk/sitemap.xml Oct 11 2011 - 5:13pm 12 1
Any advice really gratefully received. My bosses are hammering me to submit to Google and I want to have a working sitemap to do this.
I have tried previous versions of XML sitemap too with the same error message coming up.
Thanks in advance.
Comments
Comment #1
Anonymous (not verified) commentedYou have a module enabled that is adding spaces before the <?php script tag which has shifted the output in the browser two spaces. The module scripts <?php script tag must begin on line one column one and must not contain an ending ?> tag otherwise these issues will happen.
Comment #2
Anonymous (not verified) commentedComment #3
markduce commentedearnie, that was exactly the problem.
Thank you so very much, I've been tearing my hair out over that.
I definitely owe you a beer