问题
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