www.webdeveloper.com
Results 1 to 2 of 2

Thread: how to put new node in xml file using javascript

  1. #1
    Join Date
    Dec 2008
    Posts
    1

    how to put new node in xml file using javascript

    i need help!

    for example, i have xml file:
    <?xml version="1.0" encoding="utf-8"?>
    <users>
    <user>
    <name>comsi</name>
    <id>559</id>
    </user>
    </users>


    and i want to put new node <user> into the xml file using java script.

    so

    <html>
    <head>

    <script type="text/javascript">
    ...what to do now???

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    You have a confused understanding of the javascript's nature. Javascript is a client-side language, thus it can not, alone, write/store/change data. You need also a server-side application (written in php, asp, java... a.s.o...) and a server system for that. Or you may use ActiveX + VisualBasic, if you need to work locally, using only IE as a browser.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles