I'm trying to use simplexml_load_string like so:
$xml = '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<data_GetResult xmlns="http://api.source.com/">
<data_GetData>
<value>123456</value>
<value>789000</value>
</data_GetData>
</data_GetResult>
</soap:Body>
</soap:Envelope>';
$results = simplexml_load_string($xml);
print_r($results);
However, no results are returned, it simply shows:
SimpleXMLElement Object
(
)
I believe the xml is proper, I tested it in on-line validators. Thank you.