Buttons via XML

Hi there, Im decently familiar with FlashMX2004 now a days and I’ve been searching on a way to do this but I’ve had little luck. What Im trying to do is that I have a Database, and using PHP it will read the db and spit back out XML that I want my Flash to be able to read.

In this XML I want it to be able to have a set of buttons that would be labeled, either go to a new section in itself (the picture viewer) or it would make a new set of buttons and a text area (to see my resume and its sections).

I’ve found how to access the XML but I really dont understand how it works, nor do I know how to make buttons with it. For example:

<resume>
<button loc=computers> Computers </button>
<button loc=art> Art </button>
<text> This is my resume </text>
</resume>

I want flash to be able to see that there are 2 buttons generates them, place the object next to one another and insert the text in the text area for the buttons, and the text tag would be in the main text viewer.

Thank you to any and all who can help me with this.

NeoSpawn