custom XML on serialize()

I am using myGrid.serialize()



Instead of this XML format:

<?xml version="1.0"?>555004255.99Y



I need to create custom XML, such as:

<?xml version="1.0"?>5550042<cell id="itemPrice>55.99Y



How may I insert these cell ids?



Thanks

The next appoach can be used

mygrid.xml.cell_attrs=[“id”];
mygrid.cells(1,0).setAttribute(“id”,“itemNumber”); //you need not this code if original XML already contains id attribute
mygrid.cells(1,1).setAttribute(“id”,“itemPrice”);
mygrid.cells(1,2).setAttribute(“id”,“onStock”);


var data = mygrid.serialize();

for some reason, IDs are not incerted… anything else I should add? Thanks

OK, got it:  you have to use myGrid.xml.cell_attrs.push(“id”); at the end. It works now. Thanks!