Skip to main content

Search 412 pages — tools, formats, elements, namespaces, directory, comparisons, XPath, datatypes, glossary, parse errors, schema errors, use cases, guides, blog and product.

XML namespace

Sitemap protocol 0.9

The namespace every sitemap.xml and sitemap index must declare, almost always as the default. Declare the https:// form and crawlers reject the file.

xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"

This is the only namespace search engines recognise for sitemap files. It is shared by both document types in the protocol: <urlset> for a sitemap and <sitemapindex> for an index that points at other sitemaps.

It is nearly always declared as the default namespace, so the elements inside appear unprefixed. A sitemap that omits the declaration, or declares the https:// form instead of http://, is a well-formed XML document that crawlers will still reject — the URI is matched literally.

URI
http://www.sitemaps.org/schemas/sitemap/0.9
Prefix
Usually the default namespace
Elements
urlsetsitemapindexurlsitemaploclastmodchangefreqpriority

Specification: sitemaps.org protocol

Get started

Bring order to the XML your team can't afford to ignore.

Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.