• Post Reply Bookmark Topic Watch Topic
  • New Topic

possible to create xml file from servlet  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!