Contains a set of functions to help Otovistas convert csv files to xml file to help speed up applications for Swedish Subsidies.
CSVs must exported in the format defined in this sheet. Do not change the headers, as this will affect the xml output.
- Clone the repository.
- Run
yarn install
- Add the csv files to the folder
sources/
. - Run
node gront-stod-csv-to-xml <PATH_TO_GRONT_STOD_FILE_NAME>
to convert the gront stod csv file to xml. The resulting xml will be generated in thedocuments/
folder. - Run
node rot-csv-to-xml <PATH_TO_ROT_FILE_NAME>
to convert the rot csv file to xml. The resulting xml will be generated in thedocuments/
folder.