Fatal Error :1:1: Content is not allowed in prolog
I'm turning my comment to an answer, so it can be accepted and this question no longer remains unanswered.
The most likely cause of this is a malformed response, which includes characters before the initial <?xml …>
. So please have a look at the document as transferred over HTTP, and fix this on the server side.
There are certainly some weird characters (e.g. BOM) or some whitespace before the XML preamble (<?xml ...?>
)?