php simplexml_load_string how to see contents of element code example
Example: xml to object php
$object = json_decode(json_encode(simplexml_load_string($xml)));
$object = json_decode(json_encode(simplexml_load_string($xml)));