When saxStream encounters an invalid xml, it throws an exception (in strict mode). The error handler isn't called, and the exception isn't catched.
I don't see anywhere in the code, where you handle the "error" event. Probably you should forward saxStream.on("error") to emitter.emit("error"). (I'm not an expert in JS, though.)
When saxStream encounters an invalid xml, it throws an exception (in strict mode). The error handler isn't called, and the exception isn't catched.
I don't see anywhere in the code, where you handle the "error" event. Probably you should forward saxStream.on("error") to emitter.emit("error"). (I'm not an expert in JS, though.)
Best regards