When going from XML to JS, the "processors.stripPrefix" allows you to remove the prefix. Is there any option to add prefix ?
const jsonObj = {
foo: {
bar: {
hello: 'world'
}
}
};
const builder = new xml2js.Builder();
const xml = builder.buildObject(jsonObj);
console.log(xml);
//I need this result
<prefix:foo>
<prefix:bar>
<prefix:hello>world</prefix:hello>
</prefix:bar>
</prefix:foo>
Any solution please ??