Export the XML File From Grid in Magento

In previous post export Excel, We have learn export XML from admin grid now i am providing snipped of code to export XML from admin grid.
You can also check other tutorial of Magneto export,