How do i retrieve my data from my xml

i’ve trying to retrieve data from my xml file using an “on release” handler attached to a button but with no luck. what i actually want to do is create 30 buttons in flash (10 x 3) using thumbnails, then at the click of each, data will be extracted from the xml (texts and pix) and load it into specified textfields and a movieclip. please help me because i don’t know how to achieve this. All the tutorials i’ve seen places their code on a frame and infact, the code is used to generate the buttons and associated actions.
pls i’ll be grateful if you can help me !!! also if there are any resources i can use to improve my xml/flash knoeledge, i’ll be glad