I am working on a simple RSS feed for my site but this error keeps coming up:
error on line 2 at column 6: XML declaration allowed only at the start of the document
This is from Chrome with the correct Content-Type headers set for xml. Apparently XML doesnt like it when the declaration isn't at the very top. All the other pages have a newline as the first line in the markup as well (right before the doctype declaration). Is there any way to remove this so it validates? Im guessing it's something in the core because I can't find anything else.
error on line 2 at column 6: XML declaration allowed only at the start of the document
This is from Chrome with the correct Content-Type headers set for xml. Apparently XML doesnt like it when the declaration isn't at the very top. All the other pages have a newline as the first line in the markup as well (right before the doctype declaration). Is there any way to remove this so it validates? Im guessing it's something in the core because I can't find anything else.