var one = xmlRoot.getElementsByTagName("one")[0].firstChild.data; if(document.getElementById("one").innerHTML != one) document.getElementById("one").innerHTML = one;