asp.netsitemapbreadcrumbssitemappath

Is adding attributes to nodes in the web.sitmap a bad idea?


I using SiteMapPath with an xml file for data. I would like to use the same file for another menu, but I need to have more information attached to each node.

<siteMapNode target="_blank" url="~/Default.aspx" title="Home"  description="Home Page" >
VS
<siteMapNode url="~/Default.aspx" title="Home"  description="Home Page" >

So far it doesn't break on my box, but will I run into problems later? Or is there a better way?


Solution

  • Doubtfull you'll run into any problems. Whatever is consuming your sitemap file is only going to parse known attributes. Extra attributes will go ignored.