code: function writeJsonAsXml(file, content, options) {
      const xmlBuilder = new xml2js.Builder(options);
      const changedXmlData = xmlBuilder.buildObject(content);
      let isSaved = true;
  
      try {
        fs.writeFileSync(file, changedXmlData);
      } catch (err) {
        isSaved = false;
        throw new Error(`BRANCH SDK: Cannot write file ${file}`);
      }
  
      return isSaved;
    }
docs: write to xml file