Sitemap index file
by Geethalakshmi[ Edit ] 2010-06-17 16:27:58
Sitemap index file
The XML format of a Sitemap index file is very similar to the XML format of a Sitemap file. The Sitemap index file uses the following XML tags:
* <sitemapindex> - the parent tag surrounds the file.
* <sitemap> - the parent tag for each Sitemap listed in the file (a child of <sitemapindex>)
* <loc> - the location of the sitemap (a child of <sitemap>)
* <lastmod> - the last modified date of the sitemap (optional)
Sample XML Sitemap Index
The following example shows a Sitemap index in XML format. The Sitemap index lists two Sitemaps:
<?xml version="1.0" encoding="UTF-8"?>
<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>
</sitemap>
<sitemap>
<loc>http://www.example.com/sitemap2.xml.gz</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
</sitemapindex>