diff --git a/lib/xml-stream.js b/lib/xml-stream.js index 85fef92..f985847 100644 --- a/lib/xml-stream.js +++ b/lib/xml-stream.js @@ -496,6 +496,11 @@ function parse() { } curr.fullText += text; }); + + // Just forward comment event. + xml.on('comment', function(comment){ + self.emit('comment', comment); + }); // This prelude array and string are used during encoding detection.