xml2jsonparser

This tools allow you to parse any kind of xml and return a json with key as tag

Usage no npm install needed!

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

README

String XML to JSON

Description

This little tool allow you to transform a xml string into a json object with tag name.

Install

in console, type npm install xml2jsonparser To install it globally, type npm install -g xml2jsonparser

Use

To use the function, you have to require it const parser = require("xml2jsonparser"); Then var json = parser(xmlString);