protected function getFeedXml()
    {
        $client = $this->curlFactory->create();
        $client->setConfig($this->getCurlConfig());

        $client->write(\Zend_Http_Client::GET, self::ENDPOINT, '1.0');

        $response = $client->read();
        $client->close();

        if (false !== $response) {
            $data = preg_split('/^\r?$/m', $response, 2);

            try {
                $xml = new \SimpleXMLElement(trim($data[1]));
            } catch (\Exception $e) {
                return false;
            }

            return $xml;
        }

        return false;
    }
protected function getFeedXml()
    {
        $client = $this->curlFactory->create();
        $client->setConfig($this->getCurlConfig());

        $client->write(\Zend_Http_Client::GET, self::ENDPOINT, '1.0');

        $response = $client->read();
        $client->close();

        if (false !== $response) {
            $data = preg_split('/^\r?$/m', $response, 2);

            try {
                $xml = new \SimpleXMLElement(trim($data[1]));
            } catch (\Exception $e) {
                return false;
            }

            return $xml;
        }

        return false;
    }
protected function getFeedXml ( ) { $ client = $ this -> curlFactory -> create ( ) ; $ client -> setConfig ( $ this -> getCurlConfig ( ) ) ; $ client -> write ( \ Zend_Http_Client :: GET , self :: ENDPOINT , '1.0' ) ; $ response = $ client -> read ( ) ; $ client -> close ( ) ; if ( false !== $ response ) { $ data = preg_split ( '/^\r?$/m' , $ response , 2 ) ; try { $ xml = new \ SimpleXMLElement ( trim ( $ data [ 1 ] ) ) ; } catch ( \ Exception $ e ) { return false ; } return $ xml ; } return false ; }
Retrieve feed data as XML element

@return \SimpleXMLElement|bool
Retrieve feed data as XML element