Quote Originally Posted by kwright View Post
So, I looked more closely at the error from FF. It seems that there is a white space before the opening declaration.

<?xml version="1.0" encoding="UTF-8"?>
^

If I save the page source and remove the space, then reopen it in FF, no error! The problem is I can't seem to find were in the sitemap code this space is being introduced? The root sitemap.xml doesn't have this issue...

I looked at the function _SitemapXMLHeader() in the sitemapxml.php class where the first lines are:

PHP Code:
  function _SitemapXMLHeader() {
    $header = '';
    $header .= '<?xml version="1.0" encoding="UTF-8"?'.'>' . "\n";
No white space here, but some how when the $header is returned and sent back to the browser, there is a space???

What do you think?
This is not a SitemapXML problem. Check language and all extra files. I wrote a script that is looking for extra spaces in PHP files. It helps to detect bad files. You can download it https://goo.gl/88MtW2/ Unzip, upload to cart root directory and start it - http://your_domain/found_extra_space.php