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” />
<aa name=“hiaa”>
<bb name=“hibb” />

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

Folder Hi
—Folder Hib
Folder Hiaa

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