I am pulling variables and values out of an xml file. I'm using the set() functionality in my class package to create these varialbes. The only issue im having is that I cant seem to set my variables in a _global. manor.

Would anybody know how to modifie this code to get the desired _global varibale result? Thanks in advance...

works:
set(key[i].attributes.id, key[i].attributes.value);

Doesn't work, how do i fix?
_global.set(key[i].attributes.id, key[i].attributes.value);