data = $data; } /** * Common import method: it creates the parser, feeds the XML parser with * data, releases the parser. * @return void */ public function import_database() { $parser = $this->get_parser(); if (!xml_parse($parser, $this->data, true)) { throw new dbtransfer_exception('malformedxmlexception'); } xml_parser_free($parser); } }