🔎
Google Search for beginners
Home
  • Introduction
  • Google Search Essentials
    • Overview
    • Google Search Technical Requirements
    • Spam Policies
  • SEO Basics
    • SEO Beginner's Guide
    • How Google Search Works
    • Creating Helpful, Reliable Content
    • Do You Need an SEO Expert?
    • Maintaining Your Website’s SEO
    • Developer's Guide to Google Search
    • How to Get Your Website Listed on Google
  • crawling and indexing
    • Overview
    • File formats Google can index
    • URL structure
    • Links
    • Sitemaps
      • Create and submit a sitemap
      • Manage your sitemaps
      • Image-specific sitemaps
      • News-oriented sitemaps
      • Video sitemaps and alternatives
      • Combining different sitemap types
    • Managing Google Crawlers
      • Reducing the crawl rate of Googlebot
      • Verifying the Googlebot and other Google crawlers
      • Managing Crawl Budget for Large Sites
      • HTTP Status Codes, Network, and DNS Errors
      • Types of Google Crawlers
      • Googlebot Explained
      • Google Read Aloud Service
      • Google API
      • Understanding Feedfetcher
    • Robots.txt
      • Creating and Submitting Robots.txt
      • Updating Robots.txt
      • Google's Interpretation of Robots.txt
    • Canonicalization
      • Specifying Canonicals Using rel="canonical" and Other Methods
      • Resolving Canonicalization Issues
    • Canonicalization for Mobile Sites and Mobile-First Indexing
    • AMP (Accelerated Mobile Pages)
      • Understanding How AMP Works in Search Results
      • Enhancing Your AMP Content
      • Validating AMP Content
      • Removing AMP Content
    • JavaScript
      • Fixing Search-Related JavaScript Issues
      • Resolving Issues with Lazy-Loaded Content
      • Using Dynamic Rendering as a Workaround
    • Page and Content Metadata
      • Meta Tags
      • Using Robots Meta Tag, data-nosnippet, and X-Robots-Tag noindex
      • noindex Explained
      • rel Attributes
    • Removals
      • Removing Pages from Search Results
      • Removing Images from Search Results
      • Handling Redacted Information
    • Redirects and Google Search
      • Switching Website Hosting Services
      • Handling URL Changes During Site Moves
      • A/B Testing for Sites
      • Pause or Disable a Website
Powered by GitBook
On this page
  1. crawling and indexing
  2. Sitemaps

Combining different sitemap types

How to Combine Sitemap Extensions

Sitemap extensions are a powerful way to provide Google with detailed information about the diverse content on your website. Your pages often contain a rich mix of elements – think news articles with embedded images and videos, or content translated for different languages. Sitemap extensions help Google understand and index this content effectively.

This guide dives deep into combining sitemap extensions, empowering you to leverage their full potential.

Understanding Namespaces

Each sitemap extension utilizes a specific namespace to define the tags it supports. This namespace is declared within the <urlset> tag using the xmlns attribute.

Think of namespaces as unique identifiers that prevent tag conflicts when using multiple extensions.

Here's a breakdown of common namespaces:

Extension
Namespace

Image

http://www.google.com/schemas/sitemap-image/1.1

News

http://www.google.com/schemas/sitemap-news/0.9

Video

http://www.google.com/schemas/sitemap-video/1.1

xhtml (for hreflang)

http://www.w3.org/1999/xhtml

Declaring Multiple Namespaces

To leverage the power of multiple extensions, you need to declare their respective namespaces within your sitemap. Let's illustrate with an example combining News, Video, and xhtml (for hreflang):

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
        xmlns:news="http://www.google.com 
PreviousVideo sitemaps and alternativesNextManaging Google Crawlers

Last updated 11 months ago