$.ajax({ url: 'tmp.xml', dataType: 'xml', success: function(data2) { document.body.innerHTML = data2; } });