Go through XML nodes

S

shapper

Hello,

I have an Asp.Net 2.0 Web.Sitemap file as follows:

....
<siteMap
xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode>
<siteMapNode
url = "~/default.aspx"
description = "Jaqueline Roxo Atelier"
title = "Página Inicial"
footer = "true" />
....

I want to loop through all 'siteMapNode' nodes and check if 'footer'
attribute is true.
If 'footer' is true I want to add the 'url' and 'title' values to a
data table or to a data view.

Is this possible?
Can someone suggest a way to do this?

Thanks,
Miguel
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top