function updateChangelog() { var e = new XMLHttpRequest; e.onload = function () { if (200 == this.status && null != this.responseXML) { var t = e.responseXML; t = (t = (new DOMParser).parseFromString(e.responseText, "text/xml")).getElementsByTagName("update"); try { for (var n = document.getElementById("guide_content"), a = 0; a <t.length;a++){varg =t[a].getElementsByTagName("date")[0].textContent.match(/[a-zA-Z0-9]/g).join("");n.innerHTML+='<h2id="' + g + '"><ahref="#' + g + '">' + t[a].getElementsByTagName("date")[0].textContent + "</a></h2>"; for (var r = t[a].getElementsByTagName("change"), o = 0; o <r.length;o++){n.innerHTML+="<h3>" + r[o].getElementsByTagName("head")[0].textContent + "</h3>"; for (var s = r[o].getElementsByTagName("paragraph"), m = 0; m <s.length;m++)n.innerHTML+="<p>" + s[m].textContent + "</p>" } } } catch (e) { } } }, e.open("GET", "changelog.xml"), e.send() }