What context is the file running in, and where are you going to save the new XML data?
(The usual context is the browser, in which case you're basically able to display it or post it back to the server.)
But if you're writing a script that would run outside the browser, it depends.