I’m trying to retrieve the original XML for a row as a string from a multi row data set.
I’m using jQuery (just upgraded to 1.6.1 to see if this fixed the issue without success) and since using ie9 the result I get from the below code personsArray[pid] = $(this).xml; is ‘undefined’. Is there a workaround for this at all. Any help would be appreciated, Many Thanks.
$(XMLdata).find('PersonRow').each(function(){
var pid = $(this).find('PersonId').text();
myData[i] = {
id: $(this).find('PersonId').text(),
name: $(this).find('Name').text(),
dob: $(this).find('BirthDate').text(),
address: $(this).find('MainAddress').text(),
telNo: $(this).find('MainTelNumber').text()
};
personsArray[pid] = $(this).xml;
i++;
});
Try this…
Best of luck.