public static function parseConfig($xml) { $p = new XmlToArray($xml); $out = $p->getOutput(); //first child, not necessarily the config node? return $out['config']; }