npm install odata-csdl
To install globally type
npm install -g odata-csdl
Assuming you installed the script globally and your XML metadata file is MyMetadata.xml
, then
odata-csdl-xml2json -p MyMetadata.xml
will create MyMetadata.json
next to it.
Just type
odata-csdl-xml2json -h
to get usage hints
Usage: odata-csdl-xml2json <options> <source files>
Options:
-h, --help show this info
-p, --pretty pretty-print JSON result
-t, --target target file (only useful with a single source file)
If you installed the script locally, start it via
node lib/cli.js ...