Similar problem — sitemap not generated, get error msg:
This page contains the following errors:
error on line 4 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.
[and the page below is empty]