String as function?

Hello!

I have an XML for the items on a menu. I’d like each item call a different function, and have the function name written on the xml.

How would you approach this? Something like (my_str as function) or maybe using eval??

Regards

Pier