Hello,
We apologize for the issue you are facing with your sitemap. The error message you are seeing, "Extra content at the end of the document," typically indicates that there is some unexpected output or content after the closing tags of your XML sitemap.
Here are a few steps you can take to troubleshoot and potentially resolve this issue:
-
Flush Permalinks: Go to WordPress Dashboard → Settings → Permalinks and click the Save Changes button without making any changes. This can help refresh your permalink settings.

-
Check for Extra Output: Ensure that there are no extra spaces, new lines, or any other output in your theme’s functions.php file or any other files that might be included before the XML output starts. This can often happen if there are stray characters or whitespace before the opening `
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We checked your sitemap and we can see it is working properly without any issues:

In case, you’re still facing the issue please try to clear your browser cache and check again.
However, it looks like you’re currently using the Rank Math PRO plugin on your website, but the account you have used to open this ticket is the Rank Math free version.
Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.
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.