aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes alert box contents as XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "alert box contents as XML" Watch "alert box contents as XML" New topic
Author

alert box contents as XML

Yell Srik
Ranch Hand

Joined: Mar 10, 2004
Posts: 61
Hi,
using javascript, i am generating XML in an alert box ie
for eg,
var str="<employee>\n";
str+="<name>\n";
str+="<age>\n";
str+="</employee>";
alert(str)

from the above code, the XML tags are now written into an alert box. now i want to save these tags as a separate xml file.
is it possible to do so and if yes, how should i proceed?
thanks in advance
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
You can use activex object to and write the string to a file like..(but you may get a security warning).


Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Moving this to Javascript forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: alert box contents as XML