Featured Links

Is it possible to add elements to an xml file permanently using javascript?

I am using the examples on w3schools and as far as i can tell creating or adding an element with javascript only makes that element accessible through javascript. I want to actually write a new element in to my XML file. How can i do this?

One Response to “Is it possible to add elements to an xml file permanently using javascript?”

  • Calvin K:

    Javascripts don’t have access to files, Period.
    You can’t write to a file using javascript.

    But there are some workaround.
    You can use XMLHttpRequest object(Ajax) or
    You can use filesystem object in Windows Scripting Host or Internet Explorer in a trusted environment.

    http://www.javascripter.net/faq/fileacce.htm

Leave a Reply

You must be logged in to post a comment.

Search
Archives
Powered by Yahoo! Answers