convert array data into xml file with xmlwriter php code example
Example: convert xml file to array php
$xmlfile = file_get_contents($path);
$ob= simplexml_load_string($xmlfile);
$json = json_encode($ob);
$configData = json_decode($json, true);