fast-xml-parser is integrated inside AppSmith and accessible through xmlParser
keyword. Here is a JS Object:
export default {
_J2Xparser: new xmlParser.j2xParser(),
jsonToXML: (json = {"abc": "def"}) => {
return this._J2Xparser.parse(json);
},
xmlToJSON: (xmlString = "<abc>def</abc>") => {
return xmlParser.parse(xmlString);
}
}