lib-array2xml ============= Array2XML conversion library credit to lalit.org Usage ---- ```php //create XML $xml = Array2XML::createXML('root_node_name', $php_array); echo $xml->saveXML(); //create Array $array = XML2Array::createArray($xml); print_r($array); ``` Array2XML ---- @xml example: ```php // Build the array that should be transformed into a XML object. $array = [ 'title' => 'A title', 'body' => [ '@xml' => '
The content for the news item
', ], ]; // Use the Array2XML object to transform it. $xml = Array2XML::createXML('news', $array); echo $xml->saveXML(); ``` This will result in the following. ```xmlThe content for the news item