Recursive File Tree

I’ve been working at this for a couple days now and still have not found a way to create a recursive file tree.
What i need is to dynamically build a movie clip using external XML variables
<a name=“hi”>
<b name=“hib”>
<c name=“hic” />
<d name=“hid” />
</b>
</a>
<aa name=“hiaa”>
<bb name=“hibb” />
</aa>

And i need to display that information in a recursive file tree such as this

Folder Hi
—Folder Hib
------Hic
------Hid
Folder Hiaa
—Hibb

I would like it to be able to open as many folders inside folders as put into the XML, any ideas on how do this would be Greatly appreciated

Chris