Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Javascript XML
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 30-Jan-11 18:49pm
Edited 31-Jan-11 1:08am
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
venkatrao palepu at 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 at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You can see this
Click
Click
  Permalink  

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

  Print Answers RSS
0 /\jmot 240
1 Richard Deeming 195
2 Richard MacCutchan 190
3 Zoltán Zörgő 175
4 Peter Leow 160
0 Sergey Alexandrovich Kryukov 9,328
1 OriginalGriff 6,831
2 Peter Leow 4,477
3 Zoltán Zörgő 3,984
4 Richard MacCutchan 2,832


Advertise | Privacy | Mobile
Web04 | 2.8.150129.1 | Last Updated 31 Jan 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100