public function xml(): ?SimpleXMLElement
    {
        return simplexml_load_string(
            utf8_encode($this->response->getBody()->getContents()),
            'SimpleXMLElement',
            LIBXML_NOCDATA | LIBXML_NOBLANKS
        );
    }
public function xml(): ?SimpleXMLElement
    {
        return simplexml_load_string(
            utf8_encode($this->response->getBody()->getContents()),
            'SimpleXMLElement',
            LIBXML_NOCDATA | LIBXML_NOBLANKS
        );
    }
public function xml ( ) : ? SimpleXMLElement { return simplexml_load_string ( utf8_encode ( $ this -> response -> getBody ( ) -> getContents ( ) ) , 'SimpleXMLElement' , LIBXML_NOCDATA | LIBXML_NOBLANKS ) ; }
Gets the body of the message as XML.

@return \SimpleXMLElement
Gets the body of the message as XML .