Webmaster Forums - Website and SEO Help

Microsys Products and Webmaster Tools => A1 Sitemap Generator => Topic started by: asturver on January 30, 2013, 08:26:46 AM

Title: Adding date in xml sitemap
Post by: asturver on January 30, 2013, 08:26:46 AM
Is there a way to add the date/time of generation in the xml sitemap?
Title: Re: Adding date in xml sitemap
Post by: Webhelpforums on January 30, 2013, 12:59:01 PM
Normally they will be added automaically.

See this help entry on dates information in XML sitemaps:
http://www.microsystools.com/products/sitemap-generator/help/http-last-modified-meta/ (http://www.microsystools.com/products/sitemap-generator/help/http-last-modified-meta/)
Title: Re: Adding date in xml sitemap
Post by: asturver on January 31, 2013, 07:22:40 AM
Thanks for your reply, but this refers to the field "last modified". I want to add a date/time in the header, perhaps something like this: <!-- Last Update of Sitemap 2013-01-31T11:48:15+3:00 --> or maybe there is another way?
Title: Re: Adding date in xml sitemap
Post by: Webhelpforums on January 31, 2013, 08:21:33 AM
Hi,

Google and other search engines will automatically be able to see when your XML sitemap itself was last updated. (They retrieve last-modified HTP header on it.) You can check this yourself by open your http://example.com/sitemap.xml file in e.g. FireFox with Live HTTP Headers (http://https://addons.mozilla.org/da/firefox/addon/live-http-headers/) plugin or similar.

The only time you can add such information in XML sitemap protocol standard is in sitemap index file:
http://www.sitemaps.org/protocol.html#index (http://www.sitemaps.org/protocol.html#index)

Quote
Code: [Select]
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <sitemap>
      <loc>http://www.example.com/sitemap1.xml.gz</loc>
      <lastmod>2004-10-01T18:23:17+00:00</lastmod>

However, you can't add it for the XML sitemap file inside the XML sitemap file itself. (Inside the XML sitemap file you can only last modified / updated information for the URLs listed in it.)
Title: Re: Adding date in xml sitemap
Post by: asturver on January 31, 2013, 08:38:09 AM
I downloaded the extension (for Chrome) and can now see exactly what I wanted without any additional effort - Great support - Thanks
Title: Re: Adding date in xml sitemap
Post by: Webhelpforums on January 31, 2013, 04:46:22 PM
Glad to hear! :)