Updating and XML file without server connection

[size=2]Using MX 2004 Pro Data components I am reading in an xml file which is displayed in a data grid. But for the life of me I can work out how to write new amended data grid back to the XML file with out using a server connection.

Strange because its easy reading in data but seems impossible to write this data back out!!