Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using mvcsitemapprovider for sitemap. http://mvcsitemap.codeplex.com/

 public class StoreDetailsDynamicNodeProvider 
        : DynamicNodeProviderBase 
        MusicStoreEntities storeDB = new MusicStoreEntities();

        public override IEnumerable<DynamicNode> GetDynamicNodeCollection() 
            // Build value 
            var returnValue = new List<DynamicNode>();

            // Create a node for each album 
            foreach (var album in storeDB.Albums.Include("Genre")) 
                DynamicNode node = new DynamicNode(); 
                node.Title = album.Title; 
                node.ParentKey = "Genre_" + album.Genre.Name; 
                node.RouteValues.Add("id", album.AlbumId);


            // Return 
            return returnValue; 

this is the code on their website for registering dynamic website nodes. How do I modify this to adapt to my website's categorization is confusing me.

Here is the layout of my website:

                education             entertainment               business
                    |                      |                        |
            kid, teenager, adult   kid, teenager, adult     kid, teenager, adult
                    |                      |                        |
                  and so on..            and so on..              and so on..

home->not approved->
                education             entertainment               business
                    |                      |                        |
            kid, teenager, adult   kid, teenager, adult     kid, teenager, adult
                    |                      |                        |
                  and so on..            and so on..              and so on..

and only after going through so many levels, the entries come up.

what's confusing me is as you can see entries in my sitemap do not have one unique parent key. Even in the database, the way things are stored as is that each row of an entry in the database would know that it belongs to approved, entertainment, kid, etc... like below:

Entry1 | approved | education | kid | levelx | levely | levelz ...  

how would one organize sitemap of something like that for sitemap?

Edit: I posted a similar question on stackoverflow, but I felt this may be more appropriate place.

share|improve this question

closed as off topic by John Conde Sep 7 '11 at 0:45

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Programming questions definitely belong at StackOverflow. I'll just close this one since you also posted it over there. – John Conde Sep 7 '11 at 0:46
@John Conde, this question was more supposed to address how to organize my sitemap. – TPR Sep 7 '11 at 0:57
How to organize it from a programming point of view. That's the domain of SO. If it were how to organize it for usability, SEO, etc, it would belong here. – John Conde Sep 7 '11 at 0:59