Some parts of this code are form unknown sources, This code is not 100% from
me. I modified it from older projects of mine. Please keep this in mind when using
this
Note:
I use the percent function to determine what priority to give to each object that
i send through the generator. This is quite important because if Google has no differences
in priority the newer pages will not get indexed and other pages may get indexed.
Once again Google only uses the Site Map as a sugestion of how it should go about
updating you website. This is a quick and simple solutions. I'm not saying this
is the only solution, but it still works great. code.
Breif Message
I recently found that the code, which I put together in such a short while, is now
popping up here and there on the web.
Here are some links to places where my code has been posted or reedited.
www.CodeXchance.net
blog.tmn.cn
The following is the original post:
link
In some versions, people had converted the server time to universal time. I am not
sure how this helps or if it makes a difference. I do not know if google is evaluating
dates and time zones.
On Google code :: Sitemaps Third Party Programs & Websites
The C# link is my original post.
code.google.com
Sample SiteMap
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns='http://www.google.com/schemas/sitemap/0.84\'>
<url>
<loc>http://www.example.com/</loc>
<lastmod>2005-01-01</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.example.com/catalog?item=12&desc=vacation_hawaii</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.example.com/catalog?item=73&desc=vacation_new_zealand</loc>
<lastmod>2004-12-23</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.example.com/catalog?item=74&desc=vacation_newfoundland</loc>
<lastmod>2004-12-23T18:00:15+00:00</lastmod>
<priority>0.3</priority>
</url>
<url>
<loc>http://www.example.com/catalog?item=83&desc=vacation_usa</loc>
<lastmod>2004-11-23</lastmod>
</url>
</urlset>
C# (Code to generate live feeds)