node-xml2js
node-xml2js copied to clipboard
anyway to convert back from JSON to XML?
anyway to convert back from JSON to original XML? love this lib. once I am done with Json I need to send back XML to server, anyway to convert back?
regards
Sean
https://www.npmjs.com/package/xml2js#xml-builder-usage
https://github.com/Leonidas-from-XIV/node-xml2js#xml-builder-usage
var xml2js = require('xml2js');
var obj = {name: "Super", Surname: "Man", age: 23};
var builder = new xml2js.Builder();
var xml = builder.buildObject(obj);