I have a fiddle: http://jsfiddle.net/j8Y76/
When you click Process log, it should display the contents of the "to" tag. (on the console).
$('#doProcessLog').click(function(){
var XMLstring = $.parseXML($.trim($('#log-a').val()));
var out = $(XMLstring).find('note to').each(function(i, data){
console.log(data);
});
});
However, It displays the whole element with the tags, but if I try to output it to an alert box or div element as text, it comes back as "Object "