code: function getOpenTagParams(tag, tmplRule) {
    var pattern = tmplRule.openTagParams,
        matchArr,
        ret;
  
    while (matchArr = pattern.exec(tag)) {
      var key = matchArr[1];
  
      if (key === '/') {
        //If match to the last of "/", then continue the loop.
        continue;
      }
  
      if (!ret) {
        ret = [];
      }
  
      var value = matchArr[8],
          onlyBrace = matchArr[4] != null ? matchArr[4] : matchArr[6],
          onlyKey = false;
  
      if (value != null) {
        value = clearQuot(value); //Remove quotation marks
      } else {
        value = key; //Match to Similar to "checked" or "disabled" attribute.
  
        if (!onlyBrace) {
          onlyKey = true;
        }
      } //Removed at the end of "/>", ">" or "/".
  
  
      if (!matchArr[9] && !matchArr[10]) {
        if (/\/>$/.test(value)) {
          value = value.substr(0, value.length - 2);
        } else if (/>$/.test(value) || /\/$/.test(value)) {
          value = value.substr(0, value.length - 1);
        }
      } //Transform special key
  
  
      var hasColon = void 0;
  
      if (key[0] === ':') {
        key = key.substr(1);
        hasColon = true;
      }
  
      ret.push({
        key: key,
        value: value,
        onlyBrace: onlyBrace,
        hasColon: hasColon,
        onlyKey: onlyKey
      });
    }
  
    return ret;
  }
docs: Extract parameters inside the xml open tag