Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
It is usually caused by whitespace in your theme code that is breaking the sitemap generation. In your case, not only sitemap, but also for any other URLs on your site, the blank lines are added in the source code.
This might be added by a blank line/space in your wp-config.php
file or your theme’s functions.php
file. Here’s a link for more information:
https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration
You can get in touch with your web host for assistance checking your website files for you.
Also, make sure your cache is disabled as it is highly likely that the cache is interfering with the working of Sitemap functionality of Rank Math.
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.