Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

alert box contents as XML

 
Yell Srik
Ranch Hand
Posts: 61
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to Javascript forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic