# Simple xml question

**URL:** https://forum.kirupa.com/t/simple-xml-question/308092
**Category:** Uncategorized
**Created:** [April 17, 2010, 3:37am UTC](https://forum.kirupa.com/t/simple-xml-question/308092 "2010-04-17T03:37:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ph03nix](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@Ph03nix](https://forum.kirupa.com/u/Ph03nix)
#### Post date: [April 17, 2010, 3:37am UTC](https://forum.kirupa.com/t/simple-xml-question/308092/1 "2010-04-17T03:37:00Z")

</div>

I have an xml file like this:

\<files\>  
\<one\>  
\<link\>[www.example.com](http://www.example.com)\</link\>  
\<name\>this is element one\</name\>  
\</one\>  
\<two\>  
\<link\>[www.otherexample.com](http://www.otherexample.com)\</link\>  
\<name\>this is element two\</name\>  
\</two\>  
\</files\>

I need to be able to cycle through each child of files (one, two, etc) and extract all their data into a 2D array (the first row contains links, the second contains names)… however I’m really rusty with XML in as2… could anyone possibly whip me up a quick code sample that could accomplish this?

I’d really appreciate the help
