# Datasets !?!?!?

**URL:** <https://forum.kirupa.com/t/datasets/53896>\
**Category:** Uncategorized\
**Created:** [June 9, 2004, 4:35am UTC](https://forum.kirupa.com/t/datasets/53896 "2004-06-09T04:35:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![d2kagw](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/d2kagw/32/539_2.png) [@d2kagw](https://forum.kirupa.com/u/d2kagw)\
**Post date:** [June 9, 2004, 4:35am UTC](https://forum.kirupa.com/t/datasets/53896/1 "2004-06-09T04:35:30Z")

</div>

Hi everyone…

im having some trouble getting my head around how to use the DataSet component in MX 2004.

I need to draw a heap of objects based off the following schema:

```auto

<Trable>
   <Week>
	  <wID>13</wID>
	  <Task>
		 <UID>1223</UID>
		 <Description>blah blah</Description>
	  </Task>
   </week>
</Trable>

```

i’ve got this data being loaded into the Dataset with no problems, however, now i need to build a class that cycles through the datasets items and attach a MC to the timeline for every ‘task’.

now my question is, how do I cycle through the dataset? I’ve worked out how to do it on the root level [i.e. return items through dataset.currentItem.ID] but how to I dig down and cycle through its children? as the number of ‘tasks’ and ‘weeks’ vary greatly.

thanks for your help in advance…please someone help, I really need it !!!

Cheers :huh:
