I use my web.sitemap file to help build my site navigation and I also use it on my 'Sitemap.aspx' page which simply displays the entire hierarchy in a TreeView.

On my Sitemap.aspx page, I'm trying to hide those nodes in the web.sitemap that are used to 'edit' particular objects. These pages generally accept variables through the QueryString and are normally accessed through other pages in the application. Hence, it doesn't make sense to enter those pages directly so I need to remove them from the tree generated on my Sitemap.aspx page.

I added a custom property to the nodes that need to be removed in my web.sitemap file (hideNode='true') but I can't seem to find a way to isolate those nodes during the binding process and not populate them in the TreeView.

Is there any way to do this?