examples/cordova1/plugins/branch-cordova-sdk/src/scripts/npm/processConfigXml.js
function getConfigXml(projectRoot) {
    const pathToConfigXml = path.join(projectRoot, "config.xml");
    const configXml = xmlHelper.readXmlAsJson(pathToConfigXml);

    if (configXml == null) {
      throw new Error(
        "BRANCH SDK: A config.xml is not found in project's root directory. Docs https://goo.gl/GijGKP"
      );
    }

    return configXml;
  }
function getConfigXml(projectRoot) {
    const pathToConfigXml = path.join(projectRoot, "config.xml");
    const configXml = xmlHelper.readXmlAsJson(pathToConfigXml);

    if (configXml == null) {
      throw new Error(
        "BRANCH SDK: A config.xml is not found in project's root directory. Docs https://goo.gl/GijGKP"
      );
    }

    return configXml;
  }
function getConfigXml ( projectRoot ) { const pathToConfigXml = path . join ( projectRoot , "config.xml" ) ; const configXml = xmlHelper . readXmlAsJson ( pathToConfigXml ) ; if ( configXml == null ) { throw new Error ( "BRANCH SDK: A config.xml is not found in project's root directory. Docs https://goo.gl/GijGKP" ) ; } return configXml ; }
read config.xml
read config . xml