Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes What is the best way to generate XML Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What is the best way to generate XML Response" Watch "What is the best way to generate XML Response" New topic
Author

What is the best way to generate XML Response

Abhishek Asthana
Ranch Hand

Joined: Sep 08, 2004
Posts: 146
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
 
GeeCON Prague 2014
 
subject: What is the best way to generate XML Response