Parse XML Data
Through this library it is possible to convert XML structure data to JSON.
const { xml } = require('linkapi-sdk/parser');
const data = `<breakfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
Two of our famous Belgian Waffles with plenty of real maple syrup
</description>
<calories>650</calories>
</food>
</breakfast_menu>`;
const json = await xml.toJSON(data);
Updated over 4 years ago