You are here

protected static function FeedsExXmlUtility::buildDomDocument in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/Xml/Utility.php \FeedsExXmlUtility::buildDomDocument()

Builds a DOMDocument setting some default values.

Return value

DOMDocument A new DOMDocument.

2 calls to FeedsExXmlUtility::buildDomDocument()
FeedsExXmlUtility::createHtmlDocument in src/Xml/Utility.php
Creates an HTML document.
FeedsExXmlUtility::createXmlDocument in src/Xml/Utility.php
Creates an XML document.

File

src/Xml/Utility.php, line 125
Contains FeedsExXmlUtility.

Class

FeedsExXmlUtility
Simple XML helpers.

Code

protected static function buildDomDocument() {
  $document = new DOMDocument();
  $document->strictErrorChecking = FALSE;
  $document->resolveExternals = FALSE;

  // Libxml specific.
  $document->substituteEntities = FALSE;
  $document->recover = TRUE;
  return $document;
}