This is what I need:
I need to get an XML file from a server using the standard code:
if(window.XMLHttpRequest)
xmlhttp = new XMLHttpRequest();
else
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); // For IE6
xmlhttp.open("GET", xml_file, false);
xmlhttp.send();
xmldoc = xmlhttp.responseXML;
After this I need to make some changes to the XML information I received and save it to the server. Is this possible? Can I edit a file client side and send it to a server to replace the old file?
Well, you can but you need a server side script that will accept the file (as a string) and save it.
You will need a url that will accept the contents of the file and write it on the server:
//site.com/writeXML.php
This file will accept the contents of the file(say as file_contents parameter)
Now you have to send your contents to the file
On server side, you need to accept the data and write it to the file as follows: