src/Autodiscover.php
public function responseToArray($xml)
    {
        $doc = new \DOMDocument();
        $doc->loadXML($xml);
        $out = $this->nodeToArray($doc->documentElement);

        return $out['Response'];
    }
public function responseToArray($xml)
    {
        $doc = new \DOMDocument();
        $doc->loadXML($xml);
        $out = $this->nodeToArray($doc->documentElement);

        return $out['Response'];
    }
public function responseToArray ( $ xml ) { $ doc = new \ DOMDocument ( ) ; $ doc -> loadXML ( $ xml ) ; $ out = $ this -> nodeToArray ( $ doc -> documentElement ) ; return $ out [ 'Response' ] ; }
Utility function to parse XML payloads from the response into easier
to manage associative arrays.

@param string $xml
XML to parse.
@return array
Utility function to parse XML payloads from the response into easier to manage associative arrays .