Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to populate sitemap file automatically

suppose my site has thousand of files. when i add sitemap file in my project then i had to add all the urls manually. it is very tiresome job. day-by-day more pages may be added in my site then again i had to put those url again in sitemap file.

so please tell me how could i populate my sitemap file automatically from VS2010 IDE. is there any way. again when any new page will be added then that entry for that page will be added in my sitemap. how to achieve this kind of automation. is there any utility available for VS2010? plzz discuss...thanks

below sitemap file is sample

<?xml version="1.0" encoding="utf-8" ?>
  <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

  <siteMapNode url="~/default.aspx" title="Home"  description="The WebSite's Home Page">

    <siteMapNode url="~/DE/index.aspx" title="DE Home"  description="DE Home">
      <siteMapNode url="~/DE/Parts.aspx" title="Part"  description="DE Part" />
      <siteMapNode url="~/DE/SubParts.aspx" title="Subpart"  description="DE Subpart" />
    </siteMapNode>

    <siteMapNode url="~/US/index.aspx" title="US Home"  description="US Home">
      <siteMapNode url="~/US/Parts.aspx" title="Part"  description="US Part" />
      <siteMapNode url="~/US/SubParts.aspx" title="Subpart"  description="US Subpart" />
    </siteMapNode>

    <siteMapNode url="~/UK/index.aspx" title="UK Home"  description="UK Home">
      <siteMapNode url="~/UK/Parts.aspx" title="Part"  description="UK Part" />
      <siteMapNode url="~/UK/SubParts.aspx" title="Subpart"  description="UK Subpart" />
    </siteMapNode>

     </siteMapNode>
     </siteMap>

if my site map file name is different then what i need to do....plzz advise. thanks

like image 321
Keith Costa Avatar asked Nov 17 '11 09:11

Keith Costa


1 Answers

Some options to consider:

http://sitemapgenerator.codeplex.com/

http://www.codeproject.com/KB/aspnet/GoogleSiteMapProvider.aspx

http://code.google.com/p/sitemap-generators/wiki/SitemapGenerators

like image 187
mjwills Avatar answered Oct 06 '22 01:10

mjwills