I'm new to XML. Since I'm using the XML more for modification of how Flash will work, I wanna ask which method is a better way to write to a XML file.

I guess there's 2 ways here. One is by selecting the specific tag to modify, the other is to write the whole chunk of XML back to the same file. Which is better?

And if its possible, pls do provide some code samples of how to write to an XML file, and use Flash to read it.