Wee need approximately half of lodFile method + getXMLErros method. That's about a third of a https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Config/Util/XmlUtils.php