Hey all i am currently using this code below to gather my returned XML data:
success: function(xml) {
$(xml).find('members').each(function(){
$(this).find("id").each(function(){
var id = $(this).text();
$("#example").append('<img src="http//www.xxxxxxx.com/' + id + '.jpg">');
});
});
}
However, i need it to be able to gather ALL the data from each section at a time without having to loop just for one thing then go back and loop to get the second, etc etc.
The XML looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<members>
<new>YES</new>
<id>5678994</id>
<name>Bob Barker</name>
<rsvp>0</rsvp>
<new>NO</new>
<id>94443326</id>
<name>Bill Gates</name>
<rsvp>0</rsvp>
<street1>na</street1>
<street2>na</street2>
<city>na</city>
<state>na</state>
<zip>0</zip>
<cellp>0</cellp>
</members>