I have a xml url, need to bind the same xml(with out changing the xml format) to a div element using jquery ajax call. Please find my smaple code below
<div class="json-full-output">
<pre></pre>
</div>
$.ajax({
type: "GET",
url:APIUrl,
dataType: "xml" ,
success: function (xml) {
var xmlDoc = $.parseXML(xml),
$xml = $(xmlDoc);
$(".json-full-output pre").append($xml);
},
});
$(".json-full-output pre").text(xml);?