java and dom

Hello, I don't know if anyone can help me but I have written a java program that parses an xml file and then adds some elements and takes some away etc, how do I put these changes back into the original xml file?
any suggestions?
Thanks

-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su

Received on Thursday, 21 June 2001 05:53:44 UTC