Sitemap has errors, but why
Hi! When uploading my sitemap in the Google Search Console, I get the errormessage - Sitemap can be read, but has errors, Unsupported file format.
Do you think, this is because of the header, the first line which contains:
xml version="1.0" encoding="UTF-8"
I used the sitemapchecker - and there I got: Invalid XML declaration
Here is the sitemap: partner.hepster.com/sitemap.xml
Try to generate the sitemap again using the tool and then replace with the new one. Without checking the file it is hard to pin point the issue.
Visually check over the sitemap.xml page yourself and don’t rely on a tool for this to locate the problem. I was adding to my sitemap and noticed a spelling check error only yesterday. Maybe you should show the actual sitemap page
Yes, the error might be due to the XML declaration line. Ensure it's formatted correctly: <?xml version="1.0" encoding="UTF-8"?> without any additional spaces or characters before it. This could resolve the issue.
partner.hepster.com/sitemap.xml
Hi @nicky, One of the URLs needs to be corrected,
https://partner.hepster.com/en-us/insights/press/{categoryKey?}
Check the curly braces in the ending part of the URL and correct it somehow. It should resolve the issue you are facing.
@binayjha - ok, I will try. Thank you very much!
The error "Unsupported file format" may be due to an invalid XML declaration in the sitemap, such as "xml version="1.0" encoding="UTF-8". Ensure the XML declaration is properly formatted, and consider using a sitemap validator to identify and fix any other XML errors.