Closed ashishgehlot closed 4 years ago
Yes. See the convert function and serialization settings for details:
const { convert } = require('xmlbuilder2');
const jsonObj = '{ "root": "node": { } }';
const xml = convert(jsonObj, { format: 'xml' });
console.log(xml);
<?xml version="1.0"?><root><node/></root>
Thanks @oozcitak Its really helpful.
Hi guys, Its really wonderful library to build XML. I have requirement to generate JSON from XML again. Is their any function ?