extract lqi from Neighbor tableand submit lqi to a list to compare them


my problem is:
I have to extract the LQI from a neighbor table and submit them to a list, where i want to compare the single LQI value with each other in the list. the reason for this is, i want to know, wich LQI value is the best of all for controlling the LED’s on the digi dev board.
One LED for a bad value, two for middle and three for the best LQI value. I know how i get the xbee neighbor table, and in that the LQI value by sending LQI zdo request. But i don’t know how i can extract, or rather how can i hand over them to a list.
I would be very happy if you could help me doing that. =)