Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ResultSet to XML file  RSS feed

 
Ram Mohan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai friends,

Now I got a requirement to produce XML files dynamically from the
RESULTSET I am getting by executing some queries.

But I have no idea about XML.
I found some codes which is helpful to me in xml generation.But they are all static.ie predefining the required tags.

Any one have some idea or sample codes.
waiting for fast response.

Ram Mohan.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML is just a text file formatted in a certain way, like HTML except you aren't using tags to control display, you use tags to explain the data. Have a look at the J2EE Tutorial chapter: Understanding XML.
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I may be assuming incorrectly that result set refers to returned results from a database. If so, sometimes they have an XML mode that will return results already formatted for you. I know at least MySQL can return results like this.

Maybe have a look into that if you get some time.

Cheers, Jared.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!