Is it possible to modify/write data to an XML file without any server-side proxy(e.g. a php or asp script)? Can this be done via javascript? XSLT?
A:
Yes it is possible. You can do it with pure javascript or using a library like jquery
hectorsq
2008-10-28 02:43:51
Browsed through this article on site point http://www.sitepoint.com/print/xml-javascript-mozilla/The author of the article mentioned it is NOT possible to write to an XML file using client-side javascript. He wrote this near the bottom of his article. But you claim this is possible.I'm confused.
bokyo
2008-10-28 03:09:08
The server remains responsible for writing to disk. The server might provide an API to do so, which can be called from javascript, but without a serverside mechanism in place, it's not possible. Period.
Martin Kool
2008-10-28 10:07:51
Sorry, I misinterpreted the question
hectorsq
2008-10-28 16:52:42
+1
A:
You can load and modify xml in browser, but writing the file back is a different thing.
I don't know of any feasible way of writing data back to a server without some kind of server side mechanism to write the data to disk.
seanb
2008-10-28 03:17:28
A:
Using the XMLHTTPRequest object you can modify an XML document using XSLT. Here's a sample article for getting started.
David Robbins
2008-10-28 03:17:58