Simplexml_load_string($string) returns an empty object but $string contains xml? code below
问题 I retrieve some information using cURL in xml format. .... $xml = curl_exec($ch); $data = simplexml_load_string($xml); print_r($data); //out put - SimpleXMLElement Object ( ) if I try - print_r($xml); and view page source I get <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns7:users xmlns="http://www.example.com/xml/ns/rs" xmlns:ns2="http://www.example.com/xml/ns/users" xmlns:ns3="http://www.example.com/2004/11/tHistory" xmlns:ns4="http://www.example.com/fsi/tHistory" xmlns:ns5=