Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1009
  • Last Modified:

Javascript to create XML files

Can anyone please tell me how to create XML files using Javascript?
If this possible?
0
desmondtsk
Asked:
desmondtsk
1 Solution
 
chabaudCommented:
You can simply the XML DOM (with ie5).

Here is a good introduction:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmconintroductiontothedom.asp

If you problem is to create a (xml) file on disk, you would have security constraints.
0
 
devenkhatriCommented:
to create xml file on the disk , first make a vbscript function which will use FileSystemObject object of vbscript
and then call that function in javascript
filesystemobject is the object of vbscript which will create the file on your disk , and in javascript u just traverse through the structure and write the nodes onto the file
0
 
gvpathi_devCommented:
Any way it gives a warning that shows running ActiveXobjects unsafe.  and another prob is VB Script not able to run in NS.  Is there is any other solution?...

I created a ActiveX DLL but with which the same problem persist..

A VC guy told that inherit ISafe.. to open that in scripting... but if we implement it we cannot save that object in local...(File system object deney...)  MS DOM itself come with a API called "Save" but it won't work in scripts...(From VB it works fine)




0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
rdovCommented:
for Cross Platform XML Parsing in JavaScript try this:
http://xmljs.sourceforge.net/
0
 
gvpathi_devCommented:
rdov,
This is not the requirement.  He want the string to be stored into client machine?  Is it correct desmondtsk
?
0
 
MoondancerCommented:
Finalized by:
Moondancer
Community Support Moderator @ Experts Exchange
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now