Ask experts use a recursive method to generate XML content (by inviting experts took part)

Category: Java EE
 
wanghao385210578
2012-11-04 10:16:01

Sponsored Links

module code superiors module code module name

TS00101 TS0010 ; project a
TS00102 TS0010 project two
TS00103 TS0010 ; project three
TS001031 TS00103 Project III * 1
TS001032 ; TS00103 Project III * 2
TS00109 TS0010 ; project four
TS001091 TS00109 project four * 1
TS001092 TS00109 ; project four * 2
TS001093 TS00109 project four * 3
TS001094 ; TS00109 project four * 4

/ / / These are removed in the database result set: has been removed and returned a java.sql.ResultSet

<? xml version = "1.0" encoding = "gb2312"?>
<tree>
< tree text = "Project" />
<tree text=" " />
<tree text = "Item three ">
<tree text=" *1" />
<tree text=" *2">
< ;/ tree>
<tree text=" ">
<tree text = "Item four * 1" />
<tree text=" *" />
< tree text = "Item four * 3" />
<tree text=" *4" />
</tree>
</tree>

How do I generate a result set by the above XML content, attention levels uncertain, so To use a recursive method to generate

Sponsored Links

Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.