Magento – How to export selected products to xml in admin product grid

adminexportgridgrid-serlizationxml

i need to export selected product to xml form admin product grid.

i have refer this to export selected product to csv.

Can anyone help for this.

Best Answer

You have to add the below code in

[NameSpace]\[ModuleName]\Block\Adminhtml\IncreaseStock\Grid.php Find the _prepareColumns() method and below line

protected function _prepareColumns()
{
   $this->addExportType('*/*/exportLowstockCsv', Mage::helper('stockincrease')->__('CSV'));
   $this->addExportType('*/*/exportLowstockExcel', Mage::helper('stockincrease')->__('Excel XML'));
}

Then it will automatically drop-down in Grid.