FastFeed\Parser\AbstractDomParser::createDocumentFromXML PHP Method

createDocumentFromXML() protected method

protected createDocumentFromXML ( $content ) : DOMDocument
$content
return DOMDocument
    protected function createDocumentFromXML($content)
    {
        $previousValue = libxml_use_internal_errors(true);
        $document = new DOMDocument();
        $document->strictErrorChecking = false;
        $document->loadXML(trim($content));
        libxml_use_internal_errors($previousValue);
        return $document;
    }