public function fetch($url) { parent::fetch($url); if (stripos($this->output, '<?xml') === 0) { return simplexml_load_string($this->output, 'SimpleXMLElement', LIBXML_NOCDATA); } else { return FALSE; } }
public function fetch($url, $levels = NULL) { parent::fetch($url); $this->output = json_encode($this->output); return $this->output; }