# Help w/ XML, looping through and outputting data

**URL:** <https://forum.kirupa.com/t/help-w-xml-looping-through-and-outputting-data/224591>\
**Category:** flash\
**Created:** [May 3, 2007, 2:20pm UTC](https://forum.kirupa.com/t/help-w-xml-looping-through-and-outputting-data/224591 "2007-05-03T14:20:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattyG](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mattyg/32/868_2.png) [@MattyG](https://forum.kirupa.com/u/MattyG)\
**Post date:** [May 3, 2007, 2:20pm UTC](https://forum.kirupa.com/t/help-w-xml-looping-through-and-outputting-data/224591/1 "2007-05-03T14:20:54Z")

</div>

I have an xml document that looks like this:

```auto

<tns:YoObjects>
   <Term>
      <termId>8</termId>
      <sessionId>12</sessionId>
      <languageId>0</languageId>
      <term>black and white</term>
      <enteredDtm>2007-03-27 17:00:05</enteredDtm>
      <mimeId>1000</mimeId>
      <categoryId>0</categoryId>
   </Term>
   <Term>
      <termId>6</termId>
      <sessionId>12</sessionId>
      <languageId>0</languageId>
      <term>cars</term>
      <enteredDtm>2007-03-27 16:59:56</enteredDtm>
      <mimeId>1000</mimeId>
      <categoryId>0</categoryId>
   </Term>
   <Term>
      <termId>1599</termId>
      <sessionId>360</sessionId>
      <languageId>0</languageId>
      <term>cars</term>
      <enteredDtm>2007-04-17 10:03:43</enteredDtm>
      <mimeId>1000</mimeId>
      <categoryId>0</categoryId>
   </Term>
   <Term>
      <termId>7</termId>
      <sessionId>12</sessionId>
      <languageId>0</languageId>
      <term>photograph</term>
      <enteredDtm>2007-03-27 16:59:59</enteredDtm>
      <mimeId>1000</mimeId>
      <categoryId>0</categoryId>
   </Term>
</tns:YoObjects>

```

What I want to do is loop through and get all of the “term” values, and simply put them into a text field. How should I do this?
