diff --git a/Loader/XmlFileLoader.php b/Loader/XmlFileLoader.php index d7f1677b..6cca9e40 100644 --- a/Loader/XmlFileLoader.php +++ b/Loader/XmlFileLoader.php @@ -155,7 +155,7 @@ protected function loadFile($file) $dom = new \DOMDocument(); $dom->validateOnParse = true; - if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) { + if (!$dom->load($file, LIBXML_NONET | (defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0))) { throw new \InvalidArgumentException(implode("\n", $this->getXmlErrors($internalErrors))); } $dom->normalizeDocument();