Best way to re-attach dynamic clips with updated database info

building a dynamic menu with xml via php, mysql. attaching clips from the library for each database row/xml node, etc. No problem there.

my question is how can i rebuild that menu if another database call is made and the list needs to be repopulated?

I imagine i could create a clip on the fly and attach clips, but how could I get rid of the previous one?

i’d like to re-use the xml object just write a function that either rebuilds the clip or creates a new instance of an empty clip and builds the menu with that one?

make sense?

thanks for any input y’all!