This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: What is the best way to generate XML Response
 
It's not a secret anymore!