/**
  * Process a result row.
  * @param array $row
  * @param int $row_num The current row number when processing results.  If there was a result limit, it starts the count from the beginning of the
  * result offset.  Othwerwise, it starts counting form zero.
  * @param DOMNode $contentNode. Default to null. A node to append the result onto
  */
 protected function processResultRow($row, $row_num, $contentNode = null)
 {
     $mapped_row = $this->mapResults($row);
     if ($row_num % 500 == 0 && array_key_exists('HTTP_HOST', $_SERVER) && I2CE_Dumper::usesDefaultOutputBuffering()) {
         ob_flush();
     }
     if ($this->style == 'xml') {
         return $this->processResultRowXML($mapped_row, $row_num);
     } else {
         array_unshift($mapped_row, $row_num);
         return $this->processResultRowArray($mapped_row);
     }
 }