src/Request.php
public function getXMLContent()
    {
        if ($this->xmlContent === null) {
            try {
                if (($content = $this->getContent()) === '') {
                    return $this->xmlContent = false;
                }
                $errors = libxml_use_internal_errors(true);
                $this->xmlContent = new \SimpleXMLElement($content);
                libxml_use_internal_errors($errors);
            } catch (\Exception $E) {
                return $this->xmlContent = false;
            }
        }

        return $this->xmlContent;
    }
public function getXMLContent()
    {
        if ($this->xmlContent === null) {
            try {
                if (($content = $this->getContent()) === '') {
                    return $this->xmlContent = false;
                }
                $errors = libxml_use_internal_errors(true);
                $this->xmlContent = new \SimpleXMLElement($content);
                libxml_use_internal_errors($errors);
            } catch (\Exception $E) {
                return $this->xmlContent = false;
            }
        }

        return $this->xmlContent;
    }
public function getXMLContent ( ) { if ( $ this -> xmlContent === null ) { try { if ( ( $ content = $ this -> getContent ( ) ) === '' ) { return $ this -> xmlContent = false ; } $ errors = libxml_use_internal_errors ( true ) ; $ this -> xmlContent = new \ SimpleXMLElement ( $ content ) ; libxml_use_internal_errors ( $ errors ) ; } catch ( \ Exception $ E ) { return $ this -> xmlContent = false ; } } return $ this -> xmlContent ; }
Get the content of the url as an XML element

@return false|\SimpleXMLElement The content or false
Get the content of the url as an XML element