我有这个代码来获取数组中的xml。
$d_atahipay = $_REQUEST['xml']; $xml = new SimpleXMLElement($d_atahipay);
但我总是有这样的错误:致命错误:未捕获的异常'异常'带消息' String无法解析为XML'
serialize($_request);
的请求内容为:
a:1:{s:3:"xml";s:778:"<?xml version="1.0" encoding="UTF-8"?>
<mapi><mapiversion>1.0</mapiversion><md5content></md5content><result><operation>capture</operation><status>ok</status><date>2015-10-22</date><time>16:23:56 UTC+0000</time><origAmount>78.00</origAmount><origCurrency></origCurrency><idForMerchant>r</idForMerchant><emailClient></emailClient><idClient></idClient><merchantDatas> <_aKey_idclient></_aKey_idclient></merchantDatas><cardCountry>FR</cardCountry><ipCountry>MG</ipCountry><transid></transid><is3ds>No</is3ds><paymentMethod>VISA</paymentMethod><customerCountry>MG</customerCountry><returnCode/><returnDescriptionShort/><returnDescriptionLong/></result></mapi>
";}
有人可以帮助我获取xml内容吗?
由于