Hi, I have some PHP code that returns me this array (here is it w/ print_r) http://22.214.171.124/examples/getItems.php What I need is for my PHP code (which is basically echo print_r($array); ) to instead take this array and save it as an XML file. I will be importing this XML file into wordpress - so this XML file needs to be formatted and encoded appropriately. You can see that the array I need converted to XML is pretty basic. IMPORTANT: Each entry has their own key and values and one "metadata" field that is its own array with keys and values. You may convert the array inside the array into a flat entry for each XML entry.