Hi when i open my sitemap page
http://newstatesmandev.devcloud.acquia-sites.com/sitemap.xml
getting the error like
XML Parsing Error: XML or text declaration not at start of entity
Location: http://newstatesmandev.devcloud.acquia-sites.com/sitemap.xsl
Line Number 3, Column 1:

what may be the problem and what i need to solve this issue.

i am using drupal 6.2 and xml sitemap 6.x-2.0

Comments

Anonymous’s picture

Version: 6.x-2.0-rc1 » 7.x-2.x-dev
Component: xmlsitemap_modal » Documentation
Category: support » task
Priority: Critical » Normal

This needs added to the README file as a FAQ as well.

You have a module(s) that does not start line 1 column 1 with <?php and thus causes the output of the sitemap.xml to not start on line 1 column 1.

You'll need to find the module and remove the blank lines at the front of the code files; .module, .inc, etc.

It could also be a theme file.

dave reid’s picture

Feel free to edit http://drupal.org/node/482550 whenever with this.

betz’s picture

can confirm this, grep to the rescue!