File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

alert box contents as XML

 
Yell Srik
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use activex object to and write the string to a file like..(but you may get a security warning).
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to Javascript forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic