Sitemap has format errors?
-
Hi,
I’m having TSF to create the sitemap (“Output Sitemap” and “Add sitemap locations in robots” are checked). I can view the sitemap when clicking “The sitemap can be found here”.But, when doing a Site Audit using SEMrush I receive an error, “sitemap.xml file has format errors”. I have asked SEMrush to provide more detailed info of what is actually wrong and received the answer:
Here is the checking tool on which our sitemap checker is based: https://www.freeformatter.com/xml-validator-xsd.html Unfortunately the page https://www.wpsupport.se/sitemap.xml is not available to view at the moment. curl -i -sS -L --max-time 5 -A 'Mozilla/5.0 ooglebot/2.1; +https://www.google.com/bot.html)' https://www.wpsupport.se/sitemap.xml HTTP/1.1 451 Unavailable For Legal Reasons Date: Wed, 10 May 2017 12:18:34 GMT Server: Apache X-Powered-By: PHP/7.0.18 Cache-Control: max-age=0 Expires: Wed, 10 May 2017 12:18:34 GMT Vary: Accept-Encoding Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8
If I manually paste the TSF-sitemap for validation at freeformatter.com then errors are shown.
If I remove some lines in the beginning, leaving the following:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"> <!-- Sitemap is generated on 2017-05-09 10:10:43 --> <url>
then the validation is passed.
While searching the TSF-forum I’ve found older posts saying that TSF works well with “Google XML Sitemap” and in the description of TSF it says that it “creates a sitemap with all your pages, posts…”
As I’m using SEMrush’s Site Audit to show my clients the technical SEO-status, is there anything I can do to eliminate the error message of “Sitemap has format errors”?
Are other sitemap plugins required (i.e. Google XML Sitemap) or is TSF sufficiently today?
- The topic ‘Sitemap has format errors?’ is closed to new replies.