这就是我需要的:
我需要使用标准代码从服务器获取 XML 文件:
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;
在此之后,我需要对收到的 XML 信息进行一些更改并将其保存到服务器。这可能吗?我可以编辑文件客户端并将其发送到服务器以替换旧文件吗?