/** * Simple Method to return XML doc from feed URL * TuiyoControllerResources::getFeedXML() * @return void */ public function getFeedXML() { $feedURL = JRequest::getVar("url"); $xmlView = $this->getView("profile", "xml"); $xmlData = TuiyoAPI::getUrl($feedURL); //Returns an XML file $xmlView->returnX($xmlData); jexit(0); }