sitemap file is xml file that microsoft use this file in asp.net 2.0 ,for developer more challenging feature of this file is using in dynamic way.I wrote a lot of articles in internet but all of them focusing on xml and sql server. Now I use XMLDOMOBJECT for dynamic sitemap.
Using the code
The following list summarizes the steps to use Dynamic sitemap file:
- Configure your ASP.NET application
- Load default.aspx file
- Add first child(shows in Just for the First Time)
- then add nodes and your own child
If you know that sitemap file has very nice stracture.for the first time you have root then again first child after that start with nodes and children,that means root start in fact in second tag.
<p style="BACKGROUND: #fbedbb"><?xml version="1.0" encoding="utf-8"?>
<siteMapNode url="" title="" description="">
I write with XmlDomObject For the first time that you can add <sitemap> tags then add children and other nodes.
Dynamic web.sitemap with XmlDomobject is really nice and challenging method for whom want to make dynamic site.