Repository navigation
it gives the ability to load a xml file like this:
use CosminCiolacu\SimpleXmlToArray\SimpleXmlToArray;
use CosminCiolacu\SimpleXmlToArray\Exceptions\InvalidXmlException;
try {
$xmlFile = 'path/to/file.xml';
$data = SimpleXmlToArray::convert($xmlFile, "file");
print_r($data);
} catch (InvalidXmlException $e) {
echo $e->getMessage();
}