src/ResponseParser.php
public function getDOMDocument()
    {
        if ($this->domDocument instanceof DOMDocument === false) {
            $this->domDocument = new DOMDocument('1.0', 'UTF-8');

            libxml_clear_errors();
            $previousSetting = libxml_use_internal_errors(true);

            @$this->domDocument->loadXML($this->response->getBody());

            libxml_clear_errors();
            libxml_use_internal_errors($previousSetting);
        }

        return $this->domDocument;
    }
public function getDOMDocument()
    {
        if ($this->domDocument instanceof DOMDocument === false) {
            $this->domDocument = new DOMDocument('1.0', 'UTF-8');

            libxml_clear_errors();
            $previousSetting = libxml_use_internal_errors(true);

            @$this->domDocument->loadXML($this->response->getBody());

            libxml_clear_errors();
            libxml_use_internal_errors($previousSetting);
        }

        return $this->domDocument;
    }
public function getDOMDocument ( ) { if ( $ this -> domDocument instanceof DOMDocument === false ) { $ this -> domDocument = new DOMDocument ( '1.0' , 'UTF-8' ) ; libxml_clear_errors ( ) ; $ previousSetting = libxml_use_internal_errors ( true ) ; @ $ this -> domDocument -> loadXML ( $ this -> response -> getBody ( ) ) ; libxml_clear_errors ( ) ; libxml_use_internal_errors ( $ previousSetting ) ; } return $ this -> domDocument ; }
Returns the response body as DOMDocument instance.

@return DOMDocument
Returns the response body as DOMDocument instance .