I noticed the following error message while checking RSS feeds belongs to a client.
XML Parsing Error: XML or text declaration not at start of entity
Line Number 2, Column 1:
This is what the XML output:
Notice the extra white line just before the
". That was the cause of the error message.
Remove the extra white line, you are ready to roll :-)
This book might help: Professional XML (Programmer to Programmer)