Creating a button with a text field

I everyone
I’m loading a xml file into a text field, now how can I tranform it to a button with the same file I loaded? Do I have to do a other button with the same var?

Thanks