xml and databinding

K

Karl Hungus

Im trying to build the navigation menu on my site using an XML file as the
admin.

The XML file mirrors the nesting structure of the menu (example XML is
below). Ive been up and down the samples but cant seem to find a way to bind
this XML structure to an appropriate list or grid. My question is basically
what is the right control to handle binding nested XML structures of varying
depths, and any info on how to use it would be great.

Just as an example, Id like to be able to read this XML and have the aspx
page generate something like:
| work
|-- flash
|---- new thing
|-- html
|---- newer thing

and so on

Thanks in Advance


-------------
<?xml version="1.0" encoding="utf-8"?>
<site name="helloworld.org 2004">
<menu>
<category name="work">
<subcategory name="flash" onimage="x.jpg" offimage="x.gif">
<menuitem name="new thing" onimage="x.gif" offimage="x.gif">
<item file="blah.swf">
<discription>This is something</discription>
</item>
</menuitem>
</subcategory>
<subcategory name="html" onimage="x.jpg" offimage="x.gif">
<menuitem name="newer thing" onimage="x.gif" offimage="x.gif">
<item file="blah.html">
<discription>This is something</discription>
</item>
</menuitem>
<menuitem name="super" onimage="x.gif" offimage="x.gif">
<item file="blah.swf">
<discription>This is something</discription>
</item>
</menuitem>
</subcategory>
</category>
</menu>
</site>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top