How to Parse a return of a Std Class object from a SoapClient command into a XML

你。 提交于 2019-12-26 07:18:23

问题


The response of a SoapClient command returned it:

stdClass Object
(
    [ExecutarXMLResult] => stdClass Object
    (
        [any] => <i9proerp xmlns=""><listatomador id_pessoa="5251" nm_pessoa="nome1" nr_cnpj_cpf="1"/><listatomador id_pessoa="939" nm_pessoa="nome2" nr_cnpj_cpf="2"/><listatomador id_pessoa="3285" nm_pessoa="nome3" nr_cnpj_cpf="3"/></i9proerp>
     )
 )

How I get the return into a XML?


回答1:


Assume

$obj = ... // result from soap, as stated above
$obj->ExecutarXMLResult->any (XML string)

Whether is a valid XML string, that's not part of this discussion.



来源:https://stackoverflow.com/questions/8520811/how-to-parse-a-return-of-a-std-class-object-from-a-soapclient-command-into-a-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!