HELP! Load XML with variable

Hi all,

i am trying to load xml with a variable, like this:

(…)

var xmlpath = thattext.text;
myXML = new XML();
myXML.load(xmlpath);

(…)

if the path is normal, like (“pathtoxml.xml”) it works, but not this way.

Is that even possible?

Thanks in advance