# HELP! Load XML with variable

**URL:** <https://forum.kirupa.com/t/help-load-xml-with-variable/319394>\
**Category:** flash\
**Created:** [February 18, 2011, 7:06pm UTC](https://forum.kirupa.com/t/help-load-xml-with-variable/319394 "2011-02-18T19:06:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![almada](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@almada](https://forum.kirupa.com/u/almada)\
**Post date:** [February 18, 2011, 7:06pm UTC](https://forum.kirupa.com/t/help-load-xml-with-variable/319394/1 "2011-02-18T19:06:14Z")

</div>

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
