Google Sitemap Error

by Alican Kablan   Last Updated July 25, 2018 18:04 PM

In my console I am getting 1 error and cant understand the given error.All sitemap validators say its correct but google doesnt accept this sitemap.

I edit it for this error and delete this all :

          writer.WriteAttributeString("xmlns:xhtml", "http://www.w3.org/1999/xhtml");
        //writer.WriteAttributeString("xmlns:xsi", "https://www.w3.org/2001/XMLSchema-instance");
        //writer.WriteAttributeString("xsi:schemaLocation", "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd");

But it does nothing change the error is continue, now here is my sitemap

`<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://xx.com.tr/tr</loc>
<priority>0.8</priority>
<changefreq>weekly</changefreq>
<link rel="alternate" hreflang="tr" href="http://xx.com.tr/tr"/>
<link rel="alternate" hreflang="de" href="http://xx.com.tr/de"/>
<link rel="alternate" hreflang="en" href="http://xx.com.tr/en"/>
<link rel="alternate" hreflang="x-default" href="http://xx.com.tr/"/>
</url>
<url>
<loc>http://xx.com.tr/de</loc>
<priority>0.8</priority>
<changefreq>weekly</changefreq>
<link rel="alternate" hreflang="tr" href="http://xx.com.tr/tr"/>
<link rel="alternate" hreflang="de" href="http://xx.com.tr/de"/>
<link rel="alternate" hreflang="en" href="http://xx.com.tr/en"/>
<link rel="alternate" hreflang="x-default" href="http://xx.com.tr/"/>
</url>
<url>
<loc>http://xx.com.tr/en</loc>
<priority>0.8</priority>
<changefreq>weekly</changefreq>
<link rel="alternate" hreflang="tr" href="http://xx.com.tr/tr"/>
<link rel="alternate" hreflang="de" href="http://xx.com.tr/de"/>
<link rel="alternate" hreflang="en" href="http://xxxx.com.tr/en"/>
<link rel="alternate" hreflang="x-default" href="http://xx.com.tr/"/>
</url>
<url>
<loc>http://xx.com.tr/</loc>
<priority>0.8</priority>
<changefreq>weekly</changefreq>
<link rel="alternate" hreflang="tr" href="http://xx.com.tr/tr"/>
<link rel="alternate" hreflang="de" href="http://xx.com.tr/de"/>
<link rel="alternate" hreflang="en" href="http://xx.com.tr/en"/>
<link rel="alternate" hreflang="x-default" href="http://xx.com.tr/"/>
</url></urlset>`

Error is :

Expected: http://www.w3.org/1999/xhtml Situated: http://www.sitemaps.org/schemas/sitemap/0.9 Main tag: url tag: link



Related Questions



Images sitemap not indexed

Updated March 22, 2017 14:04 PM


Images are not indexed in google search console

Updated June 29, 2017 11:04 AM