Writing DataGrid data back to XML file

HI,
I use an XML file for storing data. I want to edit the data; I am using a Datagrid in Flash CS3, then write the data back to the same XML file.
Anyone knows about a tutorial about doing this?

Thanks
GuyGreen