Skip to content

XML-to-JSON conversion CLI tool - JavaScript/Node.js

License

Notifications You must be signed in to change notification settings

areca/ndc-xml2json-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xml2json (Node.js)

This Node.js tool converts NDC XML messages into JSON equivalents.

It uses the "singletons-*.json" supporting files in order to ouput valid NDC messages (elements with maxOccurs > 1 should always be in arrays, whatever the number of actual occurences). This file is stored in the singletons folder: the correct NDC version should be chosen for the input message version.

Assumption: input XML is well-formed and the first element is the root.

Usage:

node xml2json.js inputFile.xml outputFile.json

About

XML-to-JSON conversion CLI tool - JavaScript/Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%