Click to See Complete Forum and Search --> : Editing XML data with javascript


malik_77
11-10-2006, 09:18 AM
Hi,

Is there any way of using XML document's elements in javascript for adding,deleting and accesing data. I know how to display data from XML but im not sure how to edit or add new data in an XML file.

I don't want to use any servers such as IIS or Tomcat etc. I just want to keep it simple for a very small application.

Thank you,

JSchwarz
11-10-2006, 03:47 PM
I hope someone more expert than me answers your question, but just in case not, here is my beginner's understanding:

It sounds like you want to add nodes or other stuff to the XML file and you are probably using Javascript. If so, you can use Microsoft's XML Parser to get the XMl document, and then add and manipulate nodes at your will. Here is a tutorial where I learned everything I know about thid method: http://www.w3schools.com/dom/default.asp

I hope this helps.
-Jeff