src/ClientBase.php
protected function parseResponse(Response $response)
    {
        $xml = new \DomDocument();
        $xml->loadXML($response->getBody());

        return XML2Array::createArray($xml->saveXML());
    }
protected function parseResponse(Response $response)
    {
        $xml = new \DomDocument();
        $xml->loadXML($response->getBody());

        return XML2Array::createArray($xml->saveXML());
    }
protected function parseResponse ( Response $ response ) { $ xml = new \ DomDocument ( ) ; $ xml -> loadXML ( $ response -> getBody ( ) ) ; return XML2Array :: createArray ( $ xml -> saveXML ( ) ) ; }
Parse the xml response into an array,

@param Response $response
The xml response.

@return \DOMDocument
The response array.
@throws \Exception
Parse the xml response into an array