Tutorial on XML For Loop

Very basic xml for loop question. this is the xml

<?xml version=“1.0” encoding=“iso-8859-1”?>

<inventor>

<person>

<name> abc</name>
<comment >first comment</comment>
</person>

<person>

<name> xyz</name>
<comment >second comment</comment>
</person>
</inventor>

NOw in the Fla there is two dynamic text field with instance name "name_txt"and “comment_txt” and some thumbnail images as button representing different persons “1”, “2”, “3” and so on.

What I want when the user click the buttons the name and the comment will change accordingly. I think for loop is best for this one.

Shall be glad if any one give me some good and effective tutorial on this.

Regards

Worthless.

I uploaded the files for your kind look. Please help.

So is it not possible to loop through the child elements of the xml file. Please help me.