从字符串加载简单的XML

时间:2014-08-09 09:25:47

标签: php simplexml

我的问题:我收到的字符串大小是ca. 4 MB

并且此字符串无法加载到simplexml_load_string (return bool(false))

数据以SoapClient收到。

如何在xml中加载此字符串?

代码:

$client = new SoapClient('mydomain.com',array("trace"=> 1,"exceptions" => 0,'features' => SOAP_SINGLE_ELEMENT_ARRAYS));
$result=$client->GetArlistaAuth(array('pid'=>$pid,'partnerkod'=>$partnerkod, 'authcode'=>$authcode));
$xml = simplexml_load_string($result, 'SimpleXMLElement', LIBXML_COMPACT | LIBXML_PARSEHUGE);

0 个答案:

没有答案