一个的NSString我有一个方法,从一个SOAP方法得到的结果:创建不同类
SDZPaymentResult* result = (SDZPaymentResult*)value;
如果我使用:NSLog(@"%@", result);
它显示:
<CXMLElement 0x20d9c950 [0x20dccc40] ns1:paymentResult
<ns1:paymentResult>
<additionalData xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<authCode xmlns="http://payment.services.adyen.com">76419</authCode>
<dccAmount xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<dccSignature xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<fraudResult xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<issuerUrl xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<md xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<paRequest xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<pspReference xmlns="http://payment.services.adyen.com">8813677969778790</pspReference>
<refusalReason xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
<resultCode xmlns="http://payment.services.adyen.com">Authorised</resultCode>
</ns1:paymentResult>>
有一种将结果更改为NSString的方法?
你想要哪个数据作为字符串?它只是链接?或者是什么 ?请解释.. – 2013-05-06 02:19:26
您使用的是TBXML,你还在吗? – 2013-05-06 02:26:30
显示的所有结果内容。 – Marckaraujo 2013-05-06 02:26:35