Transform stream implemented using SAX parser
Transform stream for parsing large XML files. It is using SAX module internally. Emits objects: one object per each selected node.
$ npm install sax-stream
Use as any transform stream: pipe request or file stream to it, pipe it to downstream another
transform stream or writeable handle
var saxStream = require'sax-stream';request''pipesaxStreamtag: 'item'on'data'console.logitem;;
Create passing options object.
tag - name of the tag to select objects from XML file
- pass more options to
Transformstream and to
highWaterMarkis hard coded at 350)