Command line utility to convert large xml to json line output.
- command line tool
- Feature to extract nested xml tags as json
- https://www.npmjs.com/package/largexml2json
- https://github.com/sameer17cs/largexml2json
Requires Node.js to run.
$ npm install largexml2json
$ npm install largexml2json -g
$ cd /path/to/library
$ npm link
For production release:
$ git clone https://github.com/sameer17cs/largexml2json
$ cd largexml2json
$ npm install
-
input:
String
- mandatory
- filepath of input xml
-
output:
String
- mandatory
- filepath of output json
- output as json lines
-
tagtoextract:
String
- mandatory
- name of xml tag/nested-tag to extract as json
- content of selected tags will be converted to json line
- nested content are stored in json field
child
-
limit:
Number
- Optional
- max output buffer size
- default: 10
- For higher limit, pass --max-old-space-size args to node
- largexml2json --input ./test/sample.xml --output ./test/sample.json --tagtoextract book
- largexml2json --input ./test/sample.xml --output ./test/sample.json --tagtoextract book --limit 100