Multiple XML files Help

Ok I have multiple xml files. Let’s say there’s 3.

I load up the first one and based on a variable. The second one loads upon clicking of a button which changes the variable and goes back to the first frame. But when it loads flash doesn’t unload the original xml file.

How can I make it unload the original file and swap for the new one?

Thanks for the help!