Click here to Skip to main content
11,414,561 members (68,265 online)
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 Sergey Alexandrovich Kryukov 9,130
1 OriginalGriff 7,477
2 Maciej Los 3,710
3 Abhinav S 3,298
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web04 | 2.8.150427.4 | 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