# Binding Web.sitemap data to menu in ASP.NET C#

**URL:** https://forum.kirupa.com/t/binding-web-sitemap-data-to-menu-in-asp-net-c/250127
**Category:** programming
**Created:** [January 25, 2008, 8:35pm UTC](https://forum.kirupa.com/t/binding-web-sitemap-data-to-menu-in-asp-net-c/250127 "2008-01-25T20:35:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abdulmohsen](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@abdulmohsen](https://forum.kirupa.com/u/abdulmohsen)
#### Post date: [January 25, 2008, 8:35pm UTC](https://forum.kirupa.com/t/binding-web-sitemap-data-to-menu-in-asp-net-c/250127/1 "2008-01-25T20:35:54Z")

</div>

Hi all,

I need to make website menu which is derived from an XML “Web.sitemap” file.

Here goes what i want to do, say that i have the following structure of my XML:

\<Friends\>  
[INDENT]\<Kirupa url=“kirupa/default.aspx”\>  
[INDENT]\<menu item 1/\>  
\<menu item 2/\>  
\<menu item 3/\>  
\<menu item 4/\>  
[/INDENT]\</Kirupa\>

\<Abroad\>  
[INDENT]\<country 1/\>  
\<country 2/\>  
\<country 3/\>  
[/INDENT]\</Abroad\>  
[/INDENT]\</Friends\>

Now let’s say that i am in the specified page of “kirupa” node (i.e. “kirupa/default.aspx”), then i want its child items to be displayed as a menu as in the attached image (see attachment) and i want to apply any css as desired.

And of course, I don’t want to see the parent node (i.e. “kirupa”) to be displayed!

That’s all i am asking!

Is this possible?

Thank you in advance
