var xml2js = require('xml2js');
var xml = '<foo></foo>';
var parser = new xml2js.Parser(/* options */);
parser.parseStringPromise(xml).then(function (result) {
console.dir(result);
})
.catch(function (err) {
// Failed
});
Comments
Related
var xml2js = require('xml2js');
var xml = '<foo></foo>';
var parser = new xml2js.Parser(/* options */);
parser.parseStringPromise(xml).then(function (result) {
console.dir(result);
})
.catch(function (err) {
// Failed
});