A sitemap can carry more about a page in elements from other namespaces, declared on the urlset root (the
protocol’s way of extending the format, see Elements). Sources, fetched as raw files this session and read in
full: Google’s pages image sitemaps (updated 2025-12-10),
video sitemaps (2026-05-20),
news sitemaps (2025-12-10), the page on combining extensions, the page on localized versions,
and Google’s three schemas sitemap-image/1.1, sitemap-video/1.1 and sitemap-news/0.9 (each marked copyright 2010). The schemas are older than the pages: they still define elements and
attributes the pages have since removed. Both are given and marked. The viewer checks each element against the pages.
To combine extensions, declare each namespace on urlset and put the tags of each extension, one after the other, in the same url. The namespaces are image, news, video and xhtml (for hreflang) below. All the general sitemap rules apply to the extensions as well. The sitemaps.org schemas allow other-namespace elements after priority; the order among extensions is not stated by any source read.
Images
Namespace http://www.google.com/schemas/sitemap-image/1.1, usually the prefix image. A
url holds up to 1,000 image:image elements. Each has an image:loc, the address of
the image, which is required (page and schema). The image address may be on another domain if both domains are verified in
Search Console and robots.txt does not disallow crawling the content. The elements image:caption, image:geo_location,
image:title and image:license were removed from Google’s documentation (the page says so under “Deprecated tags and attributes”); the 2010 schema still lists them, optional and in that order after loc, as a string, a string, a string and a URI (the title, caption and location are free text; “Limerick, Ireland” is the schema’s example of a location). The viewer says so
when it meets one.
Video
Namespace http://www.google.com/schemas/sitemap-video/1.1, prefix video. Each tag can be added once per video unless the table says otherwise. A url may hold several video:video elements, one for each video on the page. Inside one, the 2010 schema fixes this order (a sequence):
thumbnail_loc, title, description, content_loc, player_loc, duration, expiration_date, rating, content_segment_loc, view_count, publication_date, tag, category, family_friendly, restriction, gallery_loc, price, requires_subscription, uploader, tvshow, platform, live, id. Google’s own full example puts platform before requires_subscription, which is not the schema’s order, so the viewer does not check the order of extension elements.
| Element | Status and rules (current page; schema where it differs) |
|---|---|
video:video | required: the parent of everything about one video on the page named by loc |
video:thumbnail_loc | required: URL of the thumbnail image, following Google’s thumbnail requirements |
video:title | required: entities escaped or the text in a CDATA block; it should match the title on the page. The schema limits it to 100 characters; the page states no limit |
video:description | required: at most 2,048 characters, entities escaped or CDATA; it must match the description on the page, though not word for word |
video:content_loc | URL of the media file, in a supported format (HTML and Flash are not supported); must not equal the page’s loc; the counterpart of VideoObject.contentUrl. One of content_loc and player_loc is required, and content_loc is recommended |
video:player_loc | URL of a player, usually the src of an embed; must not equal loc; for Vimeo, YouTube and other iframe embeds this is used instead of content_loc; the counterpart of VideoObject.embedUrl. The schema also gives it the attributes allow_embed (Yes or No, default Yes) and autoplay (a string); the page removed both |
video:duration | whole seconds, 1 to 28800 (8 hours); the schema’s type is a non-negative integer up to 28800 |
video:expiration_date, video:publication_date | W3C format: a complete date, or a complete date with hours, minutes, seconds and a time zone (2012-07-16T19:20:30+08:00). After the expiration date Google Search does not show the video; omit the tag if it does not expire. The schema type is the date or dateTime union |
video:rating | a number from 0.0 (low) to 5.0 (high) |
video:view_count | the number of views (a non-negative integer in the schema) |
video:family_friendly | yes: available with SafeSearch on; no: only with SafeSearch off; if omitted, available when SafeSearch is on. The schema also lists Yes, YES, No and NO |
video:restriction | a space-delimited list of ISO 3166 country codes (the schema pattern is two capital letters, separated by spaces); the attribute relationship is required: allow shows the video only in the listed countries, deny hides it there. With no tag it can be shown everywhere. It affects search results only |
video:platform | a space-delimited list of web (computer browsers), mobile (phones and tablets) and tv (TV browsers, game consoles); relationship is required, allow or deny, and omitted platforms get the opposite. With no tag all platforms; search results only |
video:requires_subscription | yes or no: whether a subscription, paid or free, is needed |
video:uploader | the uploader’s name, at most 255 characters; the optional attribute info is the URL of a page about the uploader, and must be in the same domain as loc |
video:live | yes or no: whether the video is a livestream |
video:tag | repeatable, one for each tag, at most 32 a video (the schema’s maxOccurs is 32) |
Removed from the page (“Deprecated tags and attributes”): video:category, video:gallery_loc, the autoplay and allow_embed attributes of player_loc, video:price with its attributes, and video:tvshow with its attributes. The 2010 schema still defines them, so files written for it contain them:
category (at most 256 characters); gallery_loc (a URI, attribute title); price (repeatable; a string with the attributes currency, three capital letters, type, purchase or rent in either case, and resolution, sd or hd in either case); tvshow (children show_title, video_type of full, preview, clip, interview, news or other, optional episode_title, season_number and episode_number from 1, and premier_date);
plus two the page never mentions: content_segment_loc (repeatable, only with player_loc, a URL of one clip of a video published as a series, in concatenation order, with an optional duration attribute up to 28800) and id (repeatable, a string with the required attribute type of tms:series, tms:program, rovi:series, rovi:program, freebase or url).
Google also reads media RSS (mRSS) feeds in place of a video sitemap: media:content (required; attributes medium set to video, url, optional duration), media:player (at least one of it and the url attribute), media:title (at most 100 characters), media:description (at most 2,048), media:thumbnail; optional dcterms:valid (start and end dates, scheme=W3C-DTF), media:restriction (type="country" and relationship required) and media:price (currency in ISO 4217 and type of rent, purchase, package or subscription). The page also requires that every URL in a video sitemap be crawlable by Googlebot (not blocked by robots.txt, no login, on HTTP or FTP, not a streaming protocol).
News
Namespace http://www.google.com/schemas/sitemap-news/0.9, prefix news. Each url has
at most one news:news, and a sitemap may have up to 1,000 of them (more: split the sitemap). Required inside it, in this order (schema sequence):
news:publication, once, holdingnews:name(the publication’s name exactly as it appears on articles on news.google.com, omitting anything in parentheses) andnews:language(an ISO 639 code of two or three letters; for Chinese,zh-cnfor Simplified andzh-twfor Traditional; the schema pattern iszh-cn|zh-tw|[a-z]{2,3});news:publication_date: the original date and time the article was first published on your site, not when it was added to the sitemap, in one of the W3C forms Google accepts:YYYY-MM-DD,YYYY-MM-DDThh:mmTZD,YYYY-MM-DDThh:mm:ssTZDorYYYY-MM-DDThh:mm:ss.sTZD(the schema type is the date or dateTime union);news:title: the title as it appears on your site, without the author, publication name or date; Google may shorten it.
The 2010 schema also defines four optional elements the current page does not mention (the page does not list them as removed either): news:access (Subscription or Registration, omitted when the article is open), news:genres (a comma-separated list of PressRelease, Satire, Blog, OpEd, Opinion, UserGenerated), news:keywords (comma-separated text) and news:stock_tickers (up to 5 comma-separated EXCHANGE:SYMBOL pairs). In the schema they sit between publication and publication_date (access, genres) or after title (keywords, stock_tickers).
Best practice from the page: list only articles of the last two days (remove older URLs, or only their news:news); update the same sitemap rather than making a new one for each update. An empty news sitemap gives only a warning in Search Console.
Alternate-language versions
The namespace is XHTML’s, http://www.w3.org/1999/xhtml, prefix xhtml. Each url lists
every version of the page, including itself, as an xhtml:link with rel="alternate", an
hreflang (a language, with a region if needed: de-CH) and an href with the full
address. Rules, from Google’s localized-versions page: a separate url for each version, each with its own loc; every url has the whole set of links, so three versions give three identical links in each of three entries; the order of the links does not matter; the child links do not count towards the 50,000 URL limit; the sitemap lies in a directory that covers the URLs. The hreflang value is an ISO 639-1 language code optionally followed by a dash and an ISO 3166-1 alpha-2 region code (en-US; a region alone is not valid; codes outside those standards, such as es-419, are not supported); it is case-insensitive. The reserved value x-default names the fallback page for languages with no entry of their own. Pages must link back to each other: if page X names page Y, Y must name X, or the annotations may be ignored.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.example.com/english/page.html</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://www.example.com/english/page.html"/>
<xhtml:link rel="alternate" hreflang="de" href="https://www.example.de/deutsch/page.html"/>
</url>
</urlset>
Other namespaces
The viewer also recognises the namespace http://www.google.com/schemas/sitemap-mobile/1.0, but no source read this
session documents it (it is not on Google’s current pages), so nothing about it is stated here and its elements are not
checked. The Google build page only says that when a page has different mobile and desktop URLs, one version should be listed
in a sitemap, or both with annotations. An element from any other namespace is counted in the summary and shown in the tree,
and not checked.