protected function output_as_xml($res)
 {
     if ($this->data_mode) {
         while ($data = $this->sql->get_next($res)) {
             $this->data_result[] = $data[$this->data_mode];
         }
     } else {
         return parent::output_as_xml($res);
     }
 }