This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How do I create an XML which has multiple nesting of parent and child nodes? I have my data in a ResultSet Object. [ October 01, 2003: Message edited by: Nikhil Vasaikar ] [ October 01, 2003: Message edited by: Nikhil Vasaikar ]
The entire <ABCD> can be one row in the database or There might be multiple internal tags say <ASD> representing multiple rows in the database. The data other than <ASD> will remain same in such case.
EDIT: I added CODE tags for you... [ October 01, 2003: Message edited by: Lasse Koskela ] [ October 02, 2003: Message edited by: Nikhil Vasaikar ]
Joined: Sep 09, 2003
Thank You Lasse.
author and deputy
Joined: Jul 13, 2001
Hi, Writing an xml is simillar to writing a simple text file. Unless you have some specific mapping conditions (that was specified in IBM tutorial i pointed earlier),all you have to do is read the resultset data objects and write them to the file(xml file) using java.io.*. But this is not the write approach when its comes to maintainance issue & elegancy but its solve the purpose.