A PHP Error was encountered
Severity: Warning
Message: SimpleXMLElement::__construct(): Entity: line 4: parser error : Extra content at the end of the document
code
$res = bill_curl('GetAccounts');
$res = new SimpleXMLElement($res);
how to remove those extra contents?
<body>
<answer>
<account>12345678</account>
<info>some info</info>
</answer>
<answer>
<account>23456789</account>
<info>some info</info>
</answer>
</body>
this is the answer that i get in the browser, maybe I need to wrap those <answer>
, but how?, I am using Curl to get this answer from another server