HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p id="point"></p> <script> var x = document.getElementById("point"); var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if(this.readyState == 4 && this.status == 200) { var xmlDoc = xhttp.responseXML; var xmlNode = xmlDoc.getElementsByTagName("game")[0]; x.innerHTML = xmlNode.localName; } }; xhttp.open("GET", "/game.xml", true); xhttp.send(); </script> <p>The XML file used in the example: <a target="_blank" href="/game.xml">game.xml</a>.</p> </body> </html>
OUTPUT
×

Save as Private