how do i display xml data using jquery? i don't need to parse it i just need to display it to the user on the page.
Here's my current code:
$.ajax({
type: "POST",
dataType: "xml",
contentType: "application/json; charset=utf-8",
url: "Service2.svc/DoWork",
data: "{}",
processdata: true,
success: function(response, textStatus, jqXHR) {
alert($(jqXHR).responseXML);
}); $("#Text1").val($(response));
}, error: function() {
alert("error");
}
});