Here I'm providing the javascript code which I have written for this pourpose.
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}
else{
xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET", "Q4.xml", false);
xmlhttp.send();
xmlDoc = xmlhttp.responseXML;
document.getElementById("m").innerHTML= xmlDoc.getElementsByTagName("p")[0].childNodes[0].nodevalue;
</script>```