Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

zstreams-xml-parser

Streaming XML parser for node.js streams

readme

zstreams-xml-parser

XML parser based on zstreams that inputs a data stream of XML and outputs an event stream of events based on the sax XML parser.

var XMLParser = require('zstreams-xml-parser');
var zstreams = require('zstreams');

zstreams.fromFile('./example.xml').pipe(new XMLParser()).each(function(event) {
    console.log(evemt);
}).intoCallback(function(err) {
    // ...
});