Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

possible to create xml file from servlet

 
kalpana black
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as of now i am able to display the codes like xml or html from servlet while running it in server by setting the contentpane("text/xml");

is it possible to save that as a file?
ie. can we create a xml file whose nodes and elements to be created at the runtime of servlet?
[ October 18, 2007: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Varun Narang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kalpana,
You might want to google for SAX and DOM parsers. A simple search will give you far more than you need.
How about writing to a response stream, and it could be, virtually, anything you want.

Regards,
VaruNarang.
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!