1

Google Search Console is showing the following error:

enter image description here

Sitemap can be read, but has errors

Unsupported file format

I tried validating the sitemap here, and it shows me the following error:

enter image description here

Incorrect http header content-type: "text/html" (expected: "application/xml")

But don't understand how to fix it? My sitemap is an xml file.

2
  • Your sitemap is missing the <?xml version="1.0" encoding="utf-8"?> and xmlns that are required at the top of it. See Unsupported file format of sitemap - Google for details. Dec 7, 2021 at 17:55
  • @StephenOstermiller: My sitemap contains both of those elements and attributes. It does not show the first one if you open the xml file in a browser, but if you save the page and open it in an editor you will see that those elements are there. Dec 12, 2021 at 0:25

0