I am getting XML response from ajax and then I am trying to store it in sessionStorage but I cannot retrieve it.
$.ajax({
url: '/webservice.svc/getProfile',
data: { "memberId": $(authenticateResponse).find("memberId").text() },
method: "GET",
async: false,
success: function (d) {
sessionStorage.clear();
sessionStorage.setItem('ALMS', d);
}
});
When I try to retrieve
console.dirxml(sessionStorage.ALMS)
[object XMLDocument]
console.dirxml($(sessionStorage.ALMS))
What I am doing wrong !!