|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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








