magento xml
$parser = new Varien_Convert_Parser_Xml_Excel();
$io = new Varien_Io_File();
$path = Mage::getBaseDir('var') . DS . 'export' . DS;
$name = md5(microtime());
$file = $path . DS . $name . '.xml';
$fileName = 'orders.xml';
$io->setAllowCreateFolders(true);
$io->open(array('path' => $path));
$io->streamOpen($file, 'w+');
$io->streamLock(true);
$io->streamWrite($parser->getHeaderXml($fileName));
//$io->streamWrite($parser->getRowXml($this->_getExportHeaders()));
//$this->_exportIterateCollection('_exportExcelItem', array($io, $parser));
foreach($newRow as $singleRow){
if(is_array($singleRow)){
$io->streamWrite($parser->getRowXml($singleRow));
}
}
$io->streamWrite($parser->getFooterXml());
$io->streamUnlock();
$io->streamClose();