Introduction
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"?><br /><br /><siteMap> <br /><siteMapNode url="" title="" description=""> <br />... <br />... <br />... <br /></siteMapNode> <br /></siteMap><br /></p>
I write with XmlDomObject For the first time that you can add <sitemap> tags then add children and other nodes.
Summary
Dynamic web.sitemap with XmlDomobject is really nice and challenging method for whom want to make dynamic site.
I am IT Engineering and I write web application for 3 years.I love writing web programming such as asp.net,php and java Script.I am know work on XML a new technology for web developer.