Web

Javascript hiển thị XML dạng text

var xmlText = new XMLSerializer().serializeToString(response); var xmlTextNode = document.createTextNode(xmlText); var parentDiv = document.getElementById(‘result’); parentDiv.appendChild(xmlTextNode); Vậy thôi :v]]>

Leave a Reply

Your email address will not be published. Required fields are marked *