Adding date in xml sitemap

  • 5 Replies
  • 1392 Views
*

asturver

  • Newbie
  • *
  • 5
  • +0/-0
    • View Profile
Adding date in xml sitemap
« on: January 30, 2013, 08:26:46 AM »
Is there a way to add the date/time of generation in the xml sitemap?

*

Webhelpforums

  • Administrator
  • Hero Member
  • *****
  • 1385
  • +6/-0
  • Shared between Microsys, WebHelpForums and helpers
    • View Profile
    • Webmaster and Website Help Forums
Re: Adding date in xml sitemap
« Reply #1 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/
MicrosysTools.com | Website and SEO Software for webmasters | A1 Sitemap Generator, A1 Website Analyzer etc.

*

asturver

  • Newbie
  • *
  • 5
  • +0/-0
    • View Profile
Re: Adding date in xml sitemap
« Reply #2 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?

*

Webhelpforums

  • Administrator
  • Hero Member
  • *****
  • 1385
  • +6/-0
  • Shared between Microsys, WebHelpForums and helpers
    • View Profile
    • Webmaster and Website Help Forums
Re: Adding date in xml sitemap
« Reply #3 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 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

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.)
MicrosysTools.com | Website and SEO Software for webmasters | A1 Sitemap Generator, A1 Website Analyzer etc.

*

asturver

  • Newbie
  • *
  • 5
  • +0/-0
    • View Profile
Re: Adding date in xml sitemap
« Reply #4 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

*

Webhelpforums

  • Administrator
  • Hero Member
  • *****
  • 1385
  • +6/-0
  • Shared between Microsys, WebHelpForums and helpers
    • View Profile
    • Webmaster and Website Help Forums
Re: Adding date in xml sitemap
« Reply #5 on: January 31, 2013, 04:46:22 PM »
Glad to hear! :)
MicrosysTools.com | Website and SEO Software for webmasters | A1 Sitemap Generator, A1 Website Analyzer etc.

 




See Our Webmaster Tools for Windows and Mac

A1 Sitemap Generator
      
A1 Website Analyzer
      
A1 Keyword Research
      
A1 Website Download
      
A1 Website Search Engine
      
A1 Website Scraper