1

I am getting error on Google search console for XML Sitemap.

Sitemap.XML

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://sitemaps.org/schemas/sitemap/0.9">
<url>
    <loc>https://example.com/channels/</loc>
    <changefreq>daily</changefreq>
    <priority>0.8</priority>
</url>
</urlset>

Error: Your Sitemap or Sitemap index file doesn't properly declare the namespace.

enter image description here

Sitemap Index XML:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap_main.xml</loc>
</sitemap>
</sitemapindex>

Error : Your Sitemap or Sitemap index file doesn't properly declare the namespace.

enter image description here

6
  • Welcome to Webmasters. Have you googled it? Mar 1 at 6:57
  • @RohitGupta Yes, Googled a lot and Asked in Google Community forum. No fix, i asked here. Mar 1 at 7:00
  • @RohitGupta Please don't ask "Have you google it?" Even questions with easy to find answers are fine to ask here. You and I are here to answer questions, not to nudge the asker to try to find the answer themselves. Mar 1 at 11:28
  • @StephenOstermiller i believe my mistake is not adding www in url. i am using http://sitemaps.org/schemas/sitemap/0.9 but when i checked different website sitemap they all using http://www.sitemaps.org/schemas/sitemap/0.9. i am not sure if www can make can issue Mar 1 at 12:13
  • @MehulKumar, I think that's it, try with the www Mar 1 at 12:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.