Link to home
Start Free TrialLog in
Avatar of desmondtsk
desmondtsk

asked on

Javascript to create XML files

Can anyone please tell me how to create XML files using Javascript?
If this possible?
Avatar of chabaud
chabaud

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.
ASKER CERTIFIED SOLUTION
Avatar of devenkhatri
devenkhatri

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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)




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