In reply to Isabel.

In WordPress, the rewrite rules prefer static files over dynamic routes, so if there is an existing actual sitemap.xml in your web root, this will be served to visitors and WordPress is not even involved in the process.

Good idea to mention this in the documentation!