I load an xml
$.ajax({
url: '../rest/',
dataType: "xml",
success: showXML
});
function showXML(xml) {
$("#output").text((xml));
}
but he doesn’t show the xml in my output div
he shows this: [object Document]
what needs to be done so he will simple display the xml?
Because you set the
dataTypetoxmljquery will automatically give you an object for the data-parameter of your success callback.Try using this signature:
and: