C based XML -> JS Object conversion
Because 3MB SOAP files
Using libexpat and some C++ code
- Build JS object in c - fast
- Build JS object in js buffer - faster
- Build JS object in js string - faster
- Build JS Object using JSON.parse - fastest
- Find a suitably large XML file, eg ftp://ftp.archive.de.uu.net/pub/documents/rfc/rfc-index.xml
- Rename it to
resp.xml
- Checkout the branch you want
npm install -g node-gyp
npm install
node-gyp configure
node-gyp build
node test.js
You will need to run steps 5-7 every time you change branches.
This package hasn't yet been released to npm. Needs more testing.
Note that the json branch currently crashes with rfc-index.xml because I forgot to escape "
To node-xmpp/node-expat which inspired this package. I copied their DEPS folder.