This sample deals with sitemap of a website. Sometimes we need a dynamic sitemap. This samples describes the way to do this.
Here is a screen shot of the project directory of the Dynamic Sitemap
Here is a screen shot of the primary output of the example.
In the Screen shot, A, B, C, D, E are my main categories. There have their individual sub-categories. At this moment there are kept hidden.
When a user will click on the collapsing arrow of the right side the sub-categories will be visible to the user and if arrow will change to a down-arrow. If you now click on the down-arrow, the sub-categories will be hidden again.
Here is the screen shot of the final Output.