Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted
Updated 31-Jan-11 0:08am
v4

Are you asking about Creating XML File in client-side? If yes, then you cannot.

If you want to maintain XML object in memory then you can use XmlHttpRequest[^] object.
 
Share this answer
 
Comments
venkatrao palepu 31-Jan-11 1:08am    
Hi Venkatesh,

i want to Create XML file dynamically in Client Side...

if u know please help me..
Venkatesh Mookkan 31-Jan-11 1:19am    
You cannot create XML file (any file) from the Client-Side. If you still want to create, then you have to use ActiveXObject as @Sandeep said.
Not sure on what's the issue in forming an XML. All you need is to form a custom XML of yours making sure that you have all the matching open-close tags.

In case you are looking at creating XML file from client side on server side then you can have a look at this option: XML Javascript[^]
It is done using an ActiveXObject.

Or else, just form the XML using a your own defined structure and use it. Try!
 
Share this answer
 
You can see this
Click
Click
 
Share this answer
 

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