public function convert_to_old_schema_xml() { require_library('XLSParser'); $parser = new XLSParser(); $xml = $parser->create_eol_xml($this->path_to_spreadsheet); $output_file = $this->output_file(); if (!($OUT = fopen($output_file, "w+"))) { debug(__CLASS__ . ":" . __LINE__ . ": Couldn't open file: " . $output_file); return; } fwrite($OUT, $xml); fclose($OUT); return $output_file; }