Currently am trying to fetch data from an XML to my SelectBox. My XML Output is like ;
<1>
<book_able>0</book_able>
<CODE>AF</CODE>
<NAME>Afghanistan</NAME>
</1>
<2>
<book_able>1</book_able>
<CODE>AL</CODE>
<NAME>Albanie</NAME>
</2>
<3>
<book_able>1</book_able>
<CODE>DZ</CODE>
<NAME>Algerie</NAME>
</3>
<6>
<book_able>1</book_able>
<CODE>AS</CODE>
<NAME>Samoa Americaines</NAME>
</6>
<8>
<book_able>1</book_able>
<CODE>AD</CODE>
<NAME>Andorre</NAME>
</8>
<9>
<book_able>1</book_able>
<CODE>AO</CODE>
<NAME>Angola</NAME>
</9>
<11>
<book_able>1</book_able>
<CODE>AI</CODE>
<NAME>Anguilla</NAME>
</11>
Here the numbers denoted the order of the countries. But that numbers are not correctly ordered. For Example: After <3> the next number is <6>. So its hard to fetching using a loop. is there any method for this?