protected static function XmlParserTrait::stopXmlErrorHandling in Feeds 8.3
Stops custom error handling.
2 calls to XmlParserTrait::stopXmlErrorHandling()
- SitemapParser::parse in src/
Feeds/ Parser/ SitemapParser.php - Parses content returned by fetcher.
- XmlParserTrait::getDomDocument in src/
Component/ XmlParserTrait.php - Returns a new DOMDocument.
File
- src/
Component/ XmlParserTrait.php, line 85
Class
- XmlParserTrait
- Helper methods for dealing with XML documents.
Namespace
Drupal\feeds\ComponentCode
protected static function stopXmlErrorHandling() {
foreach (libxml_get_errors() as $error) {
static::$_errors[$error->level][] = [
'message' => trim($error->message),
'line' => $error->line,
'code' => $error->code,
];
}
libxml_clear_errors();
libxml_use_internal_errors(static::$_useError);
libxml_disable_entity_loader(static::$_entityLoader);
}