We are using one XML file published on the iso20022 website.
URL : https://www.iso20022.org/full_catalogue.page
File : acmt.005.001.05.xsd
Type : ATMDeviceReportV03
URL : https://nodejs.org/en/download/
URL : https://www.npmjs.com/package/xsd2json
£:~/Code/ISO20022-JSON/XSD|
⇒ xsd2json acmt.005.001.05.xsd > acmt.005.001.05.schema.json
£:~/Code/ISO20022-JSON/XSD|
⇒ ls -l
total 144
-rw-r--r-- 1 suchakjani staff 26997 9 Dec 08:33 acmt.005.001.05.schema.json
-rw-r--r--@ 1 suchakjani staff 43248 9 Dec 07:56 acmt.005.001.05.xsd
URL : https://devutilsonline.com/xsd-xml/generate-xml-from-xsd
£:~/Code/ISO20022-JSON/XML|
⇒ ls -la
total 48
drwxr-xr-x 3 suchakjani staff 96 9 Dec 08:55 .
drwxr-xr-x 4 suchakjani staff 128 9 Dec 08:55 ..
-rw-r--r--@ 1 suchakjani staff 21686 9 Dec 08:55 acmt.005.001.05.sample.xml
URL : https://www.npmjs.com/package/xml2json-cli
£:~/Code/ISO20022-JSON/XML|
⇒ ls -l
total 48
-rw-r--r--@ 1 suchakjani staff 21686 9 Dec 08:55 acmt.005.001.05.sample.xml
£:~/Code/ISO20022-JSON/XML|
⇒ xml2json acmt.005.001.05.sample.xml acmt.005.001.05.sample.json
Complete writing to acmt.005.001.05.sample.json
£:~/Code/ISO20022-JSON/XML|
⇒ ls -l
total 72
-rw-r--r-- 1 suchakjani staff 10213 9 Dec 09:00 acmt.005.001.05.sample.json
-rw-r--r--@ 1 suchakjani staff 21686 9 Dec 08:55 acmt.005.001.05.sample.xml