# Confused with nested loop in xml

**URL:** <https://forum.kirupa.com/t/confused-with-nested-loop-in-xml/307670>\
**Category:** flash\
**Created:** [April 8, 2010, 1:27am UTC](https://forum.kirupa.com/t/confused-with-nested-loop-in-xml/307670 "2010-04-08T01:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rav3](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@rav3](https://forum.kirupa.com/u/rav3)\
**Post date:** [April 8, 2010, 1:27am UTC](https://forum.kirupa.com/t/confused-with-nested-loop-in-xml/307670/1 "2010-04-08T01:27:06Z")

</div>

Hi Guys,

I hope to get help from some of the experts here.  
I’m doing an entry to display results in 3 columns.

I’m facing a problem on how to extract the column nodes for each subResults.

Heres the XML

```auto
<results>

  <resultItem cat="golf" title="Main Result 1">
  
    <subResult title="Sub Result 1">
      <column title="Rank">
        <entry>1st</entry>
        <entry>2nd</entry>
        <entry>3rd</entry>
      </column>
      <column title="Name">
        <entry>Sub Result 1 Mary</entry>
        <entry>Sub Result 1 Lucy</entry>
        <entry>Sub Result 1 Sandy</entry>
      </column>
      <column title="Points">
        <entry>Sub Result 1 10</entry>
        <entry>Sub Result 1 8</entry>
        <entry>Sub Result 1 6</entry>
      </column>
    </subResult>
	
    <subResult title="Sub Result 2">
      <column title="Rank">
        <entry>1st</entry>
        <entry>2nd</entry>
        <entry>3rd</entry>
      </column>
      <column title="Name">
        <entry>Sub Result 2 Mary</entry>
        <entry>Sub Result 2 Lucy</entry>
        <entry>Sub Result 2 Sandy</entry>
      </column>
      <column title="Points">
        <entry>Sub Result 2 10</entry>
        <entry>Sub Result 2 8</entry>
        <entry>Sub Result 2 6</entry>
      </column>
    </subResult>
  
  </resultItem>

</results>

```

For this xml, how should i do up my for loop in as2?.  
Attached is my fla
