docs: function (rootdir, platform) {
          var configXml = lib.getConfigXml(rootdir);
  
          //init common config.xml prefs if we haven't already
          var preferencesData = {
              common: configXml.findall('preference')
          };
  
          var prefs = preferencesData.common || [];
          if (platform) {
              if (!preferencesData[platform]) {
                  preferencesData[platform] = configXml.findall('platform[@name=\'' + platform + '\']/preference');
              }
              prefs = prefs.concat(preferencesData[platform]);
          }
  
          return prefs;
      }