There is xml coming with CURL:
<?xml version="1.0"?> <merchant.response> <operation wmtransid="782312540" wminvoiceid="336870756"> <amount>1</amount> <operdate>20121126 03:57:10</operdate> <purpose>test</purpose> <pursefrom>R256020338309</pursefrom> </operation> <retval>0</retval> <retdesc></retdesc> </merchant.response> $result = curl_exec($ch);
All attempts to parse are unsuccessful.
$xml = new SimpleXMLElement($result); print_r($xml);
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/user1734/public_html/system/modules/settings/balance/info_xml.php:22 Stack trace: #0 /home/user1734/public_html/system/modules/settings/balance/info_xml.php(22): SimpleXMLElement->__construct('1') #1 {main} thrown in /home/user1734/public_html/system/modules/settings/balance/info_xml.php on line 22
What is the problem?