This Node.js addon provides an XML parser and preprocessor.
npm install xppq.
For more details, see installation.
If you want to test, launch
npm explore xppq -- node test.js.
To use the parser, you need to define a callback like this example. Then you call
xppq.parse(stream,callback);, like here, with
stream, a stream providing the XML data you want to parse, and
callback, the previous mentioned callback.
The preprocessor (
xppq.Stream) is a stream which takes a stream providing the XML data, and provides also XML data. So, it can be inserted between a method which takes an XML providing stream, like the parser above, and the stream it handles, like in this example.