Can I bring a dependency on symfony/config for that. Otherwise we have to copy a bunch of code from their XMLUtils class.