xml parsing error

#661202
  • Resolved Raeanna Tilly
    Rank Math free

    Hello,
    When I click on my sitemap link it goes to this error message.
    XML parsing error: Xml or text declaration not at start of entity.

    Also, Google Search Console is saying my sitemap has an error because it is in an unsupported format.
    Please help if possible, I have no idea how this happened or how to fix it.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    This sitemap error indicates that there must be some white space before the XML Sitemap’s source code. We have checked your Sitemap and see there is an extra line before the XML. This is caused by a blank line or space in your wp-config.php or functions.php file.

    Please follow this troubleshooting guide to fix that issue:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘xml parsing error’ is closed to new replies.