Sitemap - XML declaration allowed only at the start of the document
I have uncommented the line $route['sitemap.xml'] = 'sitemap_xml' from routes.php in application/config and gone to the sitemap_xml page in my browser expecting something to render but just receive this error message below:
error on line 2 at column 6: XML declaration allowed only at the start of the document
sitemap_xml works for me out of the box so there's something else going on on your system. Presumably you have content for it to pick up?
If I go to: http://local.fuel.co.uk/sitemap_xml.php - page not found
Sorted, I had 2 <?php ?> blocks, reduced to 1 and it's working now.