lib/xml-stream.js
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()));
    }
  }
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()));
    }
  }
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 ( ) ) ) ; } }
Parse incoming chunk. Convert to UTF-8 or emit errors when appropriate.
Parse incoming chunk . Convert to UTF - 8 or emit errors when appropriate .