This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How to parse recursive DOM object
- To: xsl-list at mulberrytech dot com
- Subject: How to parse recursive DOM object
- From: sivaji <sivaji at panop dot com>
- Date: Thu, 13 Jul 2000 17:20:08 -0700
- References: <8525691A.00626DFE.00@lndanmta01.pb.com>
- Reply-To: xsl-list at mulberrytech dot com
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