xml2jsonfile

Searchs for xml files in project, parses to JSON and writes to JSON file

Usage no npm install needed!

<script type="module">
  import xml2jsonfile from 'https://cdn.skypack.dev/xml2jsonfile';
</script>

README

xml2jsonfile

Module Description

Module will search through directory tree structure of the given project for xml files. It will then parse these files to JSON, removing the xmlns prefix of each tag if found and returns the body of the envelope writing to a .json file stored in a directory called json at root of project.

The module will parse both SOAP xml files and normal xml files with attributes.

Why?

Why not! JSON is just easier to read! :)

This is my first node module and a work in progress, however please feel to create a Pull Request or raise an issue.


How to use!

    npm install xml2jsonfile
    
    // require module    
    var createJsonFromXml = require('xml2jsonfile');

    // invoke 
    createJsonFromXml();