xml file in browser using cakephp
I want to display xml file in broswer: for example: http://www.mysite.c开发者_如何学JAVAom/myfile.xml I know there is code snippet on net:
App::import('Xml');
$file = "filename.xml";
$parsed_xml =& new XML($file);
$parsed_xml = Set::reverse($parsed_xml);
but this one display an array of the xml file. How could i display it simple xml file.
Thanks
http://book.cakephp.org/view/483/Creating-an-RSS-feed-with-the-RssHelper
精彩评论