Symfony\Component\Config\Util\XmlUtils::loadFile
Loads an XML file.
Signature
public function loadFile(string
$file,
[string|callable
$schemaOrCallable = null] )
Parameters
$file
— string- An XML file path
$schemaOrCallable
— object- An XSD schema file path or callable
Returns
- DOMDocument
Errors/Exceptions
-
InvalidArgumentException
- When loading of XML file returns error