Name the file xxx.xml, and configure your server to run files with the .xml extension through the parser same as .php
OR - more complicated but correspondingly more flexible - configure the server to rewrite requests for xxx.php into requests for xxx.xml.
How you do either of these depends on what server you're using.