How to export dhtmlx grid value in xml format

Hi, I can load the data in grid and make necessary change too. but how do i generate xml of the current data of grid?? I tried to explore but could not get any such hints !! please help me creating xml output of grid data.

Pro version of grid supports XML serialization

var xml = grid.serialize(); // get state of grid as XML

dhtmlx.com/docs/products/dhtmlxG … 9335505000