Saving xml object as xml file

Hi,

I’ve loaded my .xml file into an XML object using URLLoader; and URLRequest. I have transfered some of the data into an array and to a data grid, manipulated it etc.

I now have this XML object with updated records. So how do I save it back to a .xml file so the system can re-read the records/data in it when required?

I have tried using the sharedObject class but this only seems to save a .sol file which isn’t what I need.

Thank you