Format HTTP links
Actually, the extension is irrelevant. When your page is returned, WordPress is setting the content-type for the file in the headers as text/html; charset=UTF-8. This tells any consuming application that the content is HTML, not XML. You need to force WordPress to send the appropriate headers when outputting the XML. This content type is set … Read more