How to Fix 'Incorrect Namespace' Error in XML Sitemaps
Recently, we encountered an XML sitemap error on our website, specifically related to an "Incorrect namespace" issue. The affected XML sitemap can be found at this link: https://www.experience.com/sitemap_results.xml
Upon inspecting the Google Search Console tool, the following errors were identified:
- Sitemap index can be read, but has errors
- Incorrect Namespace
- Your sitemap or Sitemap index file doesn't properly declare the namespace.
- Examples "Line 1 Tag: Sitemapindex."
To address this issue, I referred to the XML schema for the Sitemap protocol available at https://www.sitemaps.org/protocol.html. The correct declaration should be as follows:
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
Upon closer examination, it was discovered that we had used "https" instead of "http" on line 1 in our XML sitemap.
To rectify this issue, we uploaded the corrected XML sitemap on our site and subsequently re-submitted it through the Google Search Console. As a result, the error was successfully resolved, and the sitemap processed without any issues.
Comments
Post a Comment