Hi friends,
How do i create new xml file and also modify any xml file means add more nodes in xml file using javascript.?
Thanks in advance...
Hi friends,
How do i create new xml file and also modify any xml file means add more nodes in xml file using javascript.?
Thanks in advance...
What context is the file running in, and where are you going to save the new XML data?
(The usual context is the browser, in which case you're basically able to display it or post it back to the server.)
But if you're writing a script that would run outside the browser, it depends.
AFAIK you can't really create a new xml file with client-side Javascript, usually this is done through a server-side language ( Javascript can be used for server side but it's a rarity ).
Is there any particular reason why you can't go with PHP or Python to create the xml file?
In IE you can manipulate XML using an ActiveX.
There is also a built in object for FF and other W3C complient browsers.
I recommend you to take a look at this article.