parsing xml using cakephp Xml::build

edwinonline

New Member
i an following this article from cookbook. http://book.cakephp.org/2.0/en/core-utility-libraries/xml.html#Xml::build\[code\]$xmlpath = WWW_ROOT.'files/xml/'.$xmldetails['Xml']['xml_url']; App::uses('Xml', 'Utility'); if(file_exists($xmlpath)){ $parsed_xml = Xml::build($xmlpath, array('return' => 'simplexml')); pr($parsed_xml); die(); }\[/code\]this is the code that i write in the controller's method. I get\[code\]Fatal error: Call to undefined method Xml::build() \[/code\]i am not sure y i get this.any idea?
 
Back
Top