Dear All!
I am facing a small issue in showing xml in a proper format. I am getting proper xml data from my webservice. but after receiving it browser is treating it as a text and showing all test in single line. I want to show my xml data same as we open xml file in browser. How can i do this.
Here is my code
$("#getXml").click(function () {
var xmlhttp;
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
$("#divResult").html(xmlhttp.response);
}
}
// alert("email.aspx?all=""&id="3"&item=""&type="");
xmlhttp.open("GET", "e.aspx?all=&id='3'&item=&type=", true);
xmlhttp.send();
});
Regards