protected function FeedsExXml::startErrorHandling in Feeds extensible parsers 7
Same name and namespace in other branches
- 7.2 src/FeedsExXml.inc \FeedsExXml::startErrorHandling()
Starts internal error handling.
Subclasses can override this to being error handling.
Overrides FeedsExBase::startErrorHandling
1 call to FeedsExXml::startErrorHandling()
- FeedsExXml::validateExpression in src/
FeedsExXml.inc - Validates an expression.
File
- src/
FeedsExXml.inc, line 279 - Contains FeedsExXml.
Class
- FeedsExXml
- Parses XML documents with XPath.
Code
protected function startErrorHandling() {
parent::startErrorHandling();
libxml_clear_errors();
$this->handleXmlErrors = libxml_use_internal_errors(TRUE);
// Only available in PHP >= 5.2.11.
// See http://symfony.com/blog/security-release-symfony-2-0-17-released for
// details.
if (function_exists('libxml_disable_entity_loader')) {
$this->entityLoader = libxml_disable_entity_loader(TRUE);
}
}