I'm making a cURL request into an authenticated area which is working fine; and when echoing out the response everything looks good except for the first part. This is my exact response (with the otherData tag replacing my actual data).
<?xml version='1.0' encoding='UTF-8'?>
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResponseStatus>
<StatusCode>0</StatusCode>
<StatusMessage>Success</StatusMessage>
</ResponseStatus>
<otherData></otherData>
</Response>
See how the xml version='1.0' encoding='utf-8' and then we switch to using " in the actual XML? When I'm trying to load this with simplexml_load_string it fails due to that. I know I could simply do a str_replace, however that isn't really understanding the full issue here.