[jdom-interest] ResultSets into one file
Kevin L. Cobb
kevin.cobb at emergint.com
Wed Oct 12 05:32:23 PDT 2005
I'd do it something like this. You'll need a wrapper XML
(<myRoot></myRoot>) to start with. I'll assume you can get this into a
Doument object.
wrapperDoc.getRootElement().addContent(resultDocFromA.getRootElement().d
etach());
wrapperDoc.getRootElement().addContent(resultDocFromB.getRootElement().d
etach());
wrapperDoc now has results from both A and B ResultSets, both wrapped by
<myRoot> ... </myRoot>
-Kevin
-----Original Message-----
From: jdom-interest-bounces at jdom.org
[mailto:jdom-interest-bounces at jdom.org] On Behalf Of M.G
Sent: Wednesday, October 12, 2005 4:20 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] ResultSets into one file
hi everybody,
i am using the excellent ResultSetBuilder to produce xml-files, which
works good for the simple case, but i have a database with several
tables.
now i want to combine the results of the result-sets of table A and
table B to one xml-file,e.g.
<myRoot>
<ResultFromA>
<and their A-elements...>
</ResultFromA>
<ResultFromB>
<and their B-elements...>
</ResultFromB>
</myRoot>
how can this be done ? any hints, suggestions ?
thanks for your response.
with regards,
jonas
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
anmelden: http://mail.yahoo.de
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list