|
Subject: Re: How to get the parent node in a recursive DOM object From: sivaji <sivaji@xxxxxxxxx> Date: Fri, 21 Jul 2000 09:47:23 -0700 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: How to parse recursive DOM obje, Jeni Tennison | Thread | bu, sixty nine |
| Global Variables (use of), Buss, Jason A | Date | RE: Why aren't rules matched with ", Darrin Bishop |
| Month |