You are here

protected function XmlUtility::buildDomDocument in Feeds extensible parsers 8

Builds a DOMDocument setting some default values.

Return value

\DOMDocument A new DOMDocument.

1 call to XmlUtility::buildDomDocument()
XmlUtility::createHtmlDocument in src/Utility/XmlUtility.php
Creates an HTML document.

File

src/Utility/XmlUtility.php, line 69

Class

XmlUtility
Simple XML helpers.

Namespace

Drupal\feeds_ex\Utility

Code

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

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