\[code\]<Office: Orlando> <Branch:Group> <Branch:credit role='CEO' >John Debeic</Branch:credit> <Branch:credit role='COO' >Nicholas James</Branch:credit> <Branch:credit role='Asst COO' >Jaffer Khan</Branch:credit> <Branch:credit role='Secretary' >Micheal Davidson</Branch:credit> <Branch:credit role='Accountant' >Linda Smith</Branch:credit> <Branch:credit role='Member' >Sehal Singh</Branch:credit> <Branch:credit role='Member' >Mary J</Branch:credit> <Branch:credit role='Member' >Anil Josh</Branch:credit> <Branch:credit role='Member' >Anthony P</Branch:credit> <Branch:credit role='Member' >John David</Branch:credit> <Branch:credit role='Member' >Richards P</Branch:credit> <Branch:credit role='Member' >Nicholas Dane</Branch:credit> <Branch:credit role='Member' >Joseph K</Branch:credit> </Branch:Group></Office><Office: Miami> <Branch:Group> <Branch:credit role='CEO' >Liriana</Branch:credit> <Branch:credit role='COO' >Thomas</Branch:credit> <Branch:credit role='Secretary' >Nikhil Davidson</Branch:credit> <Branch:credit role='Accountant' >Minda Smith</Branch:credit> <Branch:credit role='Member' >Ross</Branch:credit> <Branch:credit role='Member' >Cary J</Branch:credit> <Branch:credit role='Member' >Sonil Josh</Branch:credit> <Branch:credit role='Member' >Jim</Branch:credit> <Branch:credit role='Member' >Steve</Branch:credit> <Branch:credit role='Member' >Robert</Branch:credit> <Branch:credit role='Member' >Nicholas Door</Branch:credit> <Branch:credit role='Member' >Joseph </Branch:credit> </Branch:Group> </Office>\[/code\]\[code\]$credit = $office->Branch->group->credit;$count = count($credit);$Member = array();for (i=0; i<$count, i++) { $Member[$i] = $credit[$i]; $Members = implode(', ', array_values($Member)); }\[/code\]Please help me with this code. This the XML format. I want the list of Members in Orlando Office (role=member)with this code i'm able to get list of all Staff.(CEO,COO,Secr,Acc, Members) But i want only members.Please give your valuable suggestions