• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the best way to generate XML Response

 
Abhishek Asthana
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am writing an AJAX application with Java. I have to send the XML response back to the javascript function. One option is to simply write the XML as a String simply:


But it won't be nice since my XML may be lot more complex. I read somewhere that DOM, XSLT, or other APIs can be used to generate the responses.

Can anyone give me some ideas about how to generate XML responses? Any pointers shall help.

Thanks
Abhishek
 
money grubbing section goes here:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!