This is the dirty and fast way to convert XML file to Array.
$array = json_decode(json_encode((array)simplexml_load_string($xml)),1);
This is the dirty and fast way to convert XML file to Array.
$array = json_decode(json_encode((array)simplexml_load_string($xml)),1);