• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml output

 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How do I send raw xml to the client from my servlet..
I have the xml as Element, i get the servletoutputstream, set the content type as text/xml, but i see no APIs using which i can send this Element.. I would like the client to see the raw xml per se.
Thank you,
Shankar.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an example of how you can print the DOM object into the response stream:
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you. i am using xalan now.
shankar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic