CassidyHunt
IS-IT--Management
I have an xml document that looks like this:
Of course it doesn't end that abruptly without finishing. Basically the parent id refers to a name. Anything that has a Parent element uses the value of that parent element to be a child of an element with that name.
I am trying to build an stylesheet that will handle the recursion and get what I need. I am stuck on how to do this. Any help would be greatly appreciated.
Cassidy
Code:
<data>
<Menu>
<name>Home</name>
<order>1</name>
</Menu>
<Menu>
<name>Explore</name>
<parent>Home</parent>
<order>1</name>
</Menu>
<Menu>
<name>Contact</name>
<parent>Home</parent>
<order>2</name>
</Menu>
<Menu>
<name>Products</name>
<order>2</name>
</Menu>
</data>
Of course it doesn't end that abruptly without finishing. Basically the parent id refers to a name. Anything that has a Parent element uses the value of that parent element to be a child of an element with that name.
I am trying to build an stylesheet that will handle the recursion and get what I need. I am stuck on how to do this. Any help would be greatly appreciated.
Cassidy