|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How to parse recursive DOM object
HI ,
I am facing problem in parsing recursive dom object , how to get the nested level,
and the levels at different levels
I have the xml like
<root> computer
<cat > desktop
<cat > compaq
<cat> servers
<child> 370 <child>
<child> 220 series </child >
</cat>
</cat>
<cat> dell
<child> pentium < /child>
</cat>
</cat>
</root>
I am looking for output some thing like
folderTree = gFld(" Computer " , "" )
aux1 = insFld(folderTree, gFld("desktop ", ""))
aux2 = insFld(aux1, gFld("compaq", ""))
aux3 = insFld(aux2, gFld("servers ", ""))
aux4 = insfld(aux3,gFld("370",""))
aux4 = insfld(aux3,gFld("220"))
aux2 = insFld(aux1, gFld("dell"))
aux3 = insFld(aux2, gFld("pentium" ))
thanks
sivaji
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








