Generate sitemap XML from a small catalog inventory
Admin ·
Start with URLs that you plan to publish and want crawlers to discover. For a catalog with two known URLs, generate a page sitemap and inspect the result before pointing a crawler toward it.
Generate a catalog sitemap and check the escaped URL
Choose Page URL set and Load example. The second row has a product URL, a tab, and a known modification date. Generate the sitemap. The result reports two page URL entries. The product loc uses & between its query fields, and its lastmod is 2026-11-03.
Copy the raw URL from your inventory. The generator takes care of XML escaping. If the inventory uses root-relative paths such as /item, enter the intended Sitemap location so its origin can turn them into absolute loc values.
https://catalog.example/
https://catalog.example/item?size=medium&color=blue 2026-11-03Use dates that describe the listed resources
Try adding tab-separated monthly and 0.8 after the product row’s date. Those values are written into changefreq and priority. Google ignores those two optional fields. Keep them only when a consuming system uses them.
A shared lastmod default should describe a known change to every row that uses it. Per-row dates take precedence, and empty defaults omit the field on rows without a value. Generating the file does not change its listed resources.
Sitemaps.org protocol and XML escapingGoogle Search Central, build and submit a sitemap
Use an index for sitemap files
Choose Sitemap index and Load example again. Generate the two child sitemap URLs. The downloaded file is named sitemap-index.xml and uses a sitemapindex root with a sitemap entry per child.
Validate the index and each child file separately. Put page URLs in the child sitemaps. Use your search provider’s submission tool after hosting the files.
Sitemaps.org protocol and XML escapingGoogle Search Central, build and submit a sitemap
Common questions
What happens if two list rows have the same URL?
An identical normalized URL with the same effective metadata is included once. Conflicting metadata is reported so you can choose an intended value.
Does submitting a sitemap guarantee discovery or indexing?
A sitemap is a discovery hint. Search providers choose which pages to crawl and index.