You can also make a bash script, for example:
#!/usr/bin/env bash cat path/to/localfile.xml | xml2json | jq .
and then import the output json to your node project.