code: function(data) {
      if (self._encoder) {
        data = self._encoder.convert(data);
      }
      if (!xml.parse(data, false)) {
        self.emit('error', new Error(xml.getError()+" in line "+xml.getCurrentLineNumber()));
      }
    }
docs: Parse incoming chunk. Convert to UTF-8 or emit errors when appropriate.