Save XML?

Is it possible to save XML? or append an existing XML file? Like, I have a few input boxes, and when the user clicks ‘save’ the info from the text boxes is inserted into an XML file?

How would you do this?