You have to manually create a resource within MODX, Template: (empty). go to the tab Settings and set Content Type: XML, Cachable and Rich Text should be ticked off. In the content field, use the following code: [[!StercSeoSiteMap]]
This question has been answered by multiple community members. See the first response.
Choosing (empty) as the template for the page should work.
If you previously used a template other than (empty) you might need to clear the site cache.
If you re-edit the page, has the template changed? When you change the template, the page reloads, but the template change isn't permanent until you "Save" the resource.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<!DOCTYPE html>
It is interesting that the declaration is not the same as all the other pages on your site.
sitemaps.xml
Other pages
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
You could try making a new template called 'none' that has no content. Use the new 'none' template for the .xml pages and clear the cache again.
Is it possible that you have a snippet or plugin on the site that is performing an action on pages as or before they are rendered?
https://docs.modx.com/revolution/2.x/developing-in-modx/basic-development/plugins/system-events/onwebpageprerender
- OnWebPagePrerender
- OnWebPageComplete
- OnWebPageInit
Could you post a list of extras / plugins installed on the site?