This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Getting XML from a ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Getting XML from a ResultSet" Watch "Getting XML from a ResultSet" New topic
Author

Getting XML from a ResultSet

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I am pretty new on this, but I was wondering what is the best way to run a query and get the data into XML. Does this XML have to have tags that are the names of the fields or is there and easy way to change the actual database field names to prettier nicer tag names that I define?
Thanks
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
Here is a custom (i.e., not generic) solution that I developed for a recent project:

[ April 17, 2002: Message edited by: Craig Demyanovich ]
[ April 17, 2002: Message edited by: Craig Demyanovich ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Thank you very much. I will try it out.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting XML from a ResultSet
 
Similar Threads
parsing a text file, advice needed...
JTable row header or?
Constants Class: Good or Bad Idea
XML details
Number as node name in XPath