Loading variables from XML

hoping someone can help…

i’m trying to load in a variable value from an xml file.

i want to turn the visibility of a button clip on or off from within my loaded XML code. i know that my xml is loading and working correctly. in my XML file, i have visible=“true” set up as an attribute to one of my nodes. what do i need to do to get

_root.myButton._visible=[the variable from my XML];

?

thanks for your forthcoming help.
jv:s: