const xmlDoc = $.parseXML(` mydrop1`); const $xml = $(xmlDoc).find('body'); $xml.find('span[dd\\:drop_list_uuid]').each(function() { console.log($(this).text()) });