Click here to Skip to main content
15,886,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends, I have small requirement to create an xml file (if File does not exists) and create root element and add nodes (Child Elements to the root element) dynamically using javascript?

I also want to modify and delete the nodes based on some attribute value?

Here is my sample xml structure

"<"company">"

"<"employee id="oo1" sex="male" age="22" ">"Patel "<"/employee">"

"<"/company">"

[** Double quotes are not required as I inserted them to show the code I am using.]

I want to add similar employee element to company(root element).

How can I do this using javascript? Is this possible? I have googled it but could not find the right answer.

Please do specify me...

Thanks
Ganesh
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900