Skip to Content
0
Former Member
Nov 29, 2009 at 10:46 AM

Closing tags while Creating tree heirarchy in loop

29 Views

hi,

i have to create a hierarchy of links.

i am using TREE for this.

But the problem is that bteween the open and close tags, the element is not excepting any loop.

loop for parent nodes.

1 . <open node tag>

2. if <condition>

3. <open new node>

4. if <condition>

5. <open node tag >

6. if < condition fails>

7. <close tag>

8. <close tag>

9. <close tag>

endloop.

In statements 7,8 and 9 above, i am running a loop for closing the tags number of times they were opened. This does not work.

I think this is becasue i should not be using loop within open and close tags.

Please let me know how to create this heirarchy. Or any other simpler method?

Thanks