XML DOM: commit/save to xml file
I have done the parsing of the form by document.getElementByID().value (which works well), and loaded and edited my XML document with the *.appendChild() method. However, nothing happens to the XML file that was loaded.
I occurred to me that maybe I had to 'commit' my changes, but I cannot find the correct method to do so on the w3c schools. I have found a micro$oft extention to the XML DOM that is called *.save() that I suppose would do the job. I am no fan of micro$oft however, and having made the rest of my site standards-compliant, it feels like crap having to use *one* MS extension.
Bottom line: Is there a standards-compliant way of saving an XML document to a file on the server?
Working on same project requirement
You look like you were working on the same problem of committing the xml file that I've been working on. I wanted to POST the xmlDoc once I'd modified text nodes but have discovered you can't commit it the server without something in between.
Could you share the PHP script you put together? Also the way you posted the xml file changes to the PHP script.