code: function constructPaths(xmlElement) {
    if (xmlElement['path'] == null) {
      return ['*'];
    }
  
    var paths = [];
    xmlElement.path.some(function(pathElement) {
      var url = pathElement['$']['url'];
  
      // Ignore explicit paths if '*' is defined
      if (url === '*') {
        paths = ['*'];
        return true;
      }
  
      paths.push(url);
    });
  
    return paths;
  }
docs: Construct list of path objects from the xml data.
  
  @param {Object} xmlElement - xml data to process
  @return {Array} list of path entries, each on is a JSON object