I am using xml as a data storage facility and am going slowly insane. I need the ability to add elements to my documents dynamically. Right now, I can use forms and JavaScript to do everything I need, including writing the changes in the DOM, but I need a perl or cgi script to send the updated document to so that it can be saved on my server. I have tried using a server-side ASP script, and I can get it to echo back to the browser, but I still can't get it to save the updated file. Any suggestions?