How I can do it

The source:
var mygrid = new…
setting…

mygrid.init();
mygrid.load(data.xml);

After the cell edited,the data was saved in the data.xml.How can I do it

You may try to use dhtmlxDataProcessor functionality:
docs.dhtmlx.com/doku.php?id=dhtm … cessor:toc