You are here

protected function XmlParser::stopErrorHandling in Feeds extensible parsers 8

Stops internal error handling.

Subclasses can override this to end error handling.

Overrides ParserBase::stopErrorHandling

1 call to XmlParser::stopErrorHandling()
XmlParser::validateExpression in src/Feeds/Parser/XmlParser.php
Validates an expression.

File

src/Feeds/Parser/XmlParser.php, line 363

Class

XmlParser
Defines a XML parser using XPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function stopErrorHandling() {
  parent::stopErrorHandling();
  libxml_clear_errors();
  libxml_use_internal_errors($this->handleXmlErrors);
  if (function_exists('libxml_disable_entity_loader')) {
    libxml_disable_entity_loader($this->entityLoader);
  }
}