code: function parseHeader(header_text) {
    var doc = new _xmldom.DOMParser().parseFromString(header_text, "text/xml");
    var header_attr = {};
    var elem = doc.getElementsByTagName("Dictionary")[0];
    if (!elem) {
      elem = doc.getElementsByTagName("Library_Data")[0]; // eslint_disable_prefer_destructing
    }
    for (var i = 0, item; i < elem.attributes.length; i++) {
      item = elem.attributes[i];
      header_attr[item.nodeName] = item.nodeValue;
    }
    return header_attr;
  }
docs: parse mdd/mdx header section
  @param {string} header_text