This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to get the parent node in a recursive DOM object
HI,
let me know is there any way that I can get the name of the immediate parent
in the child,
the xml is like this
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>
the output i am expecting is .
computer = gfld("computer " )
desktop = insFld(computer,gfld("desktop",""));
compaq = insFld(dektop,gFld("compaq"));
servers= insFld(compaq,gFld("servers"))
370 = insFld(servers,gFld("370"))
220 series = insFld(servers,gFld("220 series"))
dell = insFld(desktop,gFld("dell")) etc..
thanks
sivaji
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list