The content type is set by your PHP application:
header("Content-type: text/xml");
// spit out xml hereAs for the URL, you could do something like:
http://www.example.com/controller/action/page.xmlThen grab the third uri segment and use the suffix to determine the content type.