Validate an XML sitemap (or sitemap index): format, sitemaps.org rules and the referenced child sitemaps.
The Sitemap Validator checks that an XML sitemap (or a sitemap index) meets the sitemaps.org format and rules: well-formed URLs, size limits, correct tags and the referenced sub-sitemaps. It is the step before submitting it to Google Search Console.
A sitemap allows up to 50,000 URLs and 50 MB uncompressed. If you need more, split them into several sitemaps linked from a sitemap index.
Whenever you add, remove or change important URLs. If your site is dynamic, generating it automatically on every deploy keeps it always reflecting the real content.