# Variables from XML not working!

**URL:** <https://forum.kirupa.com/t/variables-from-xml-not-working/270257>\
**Category:** flash\
**Created:** [September 7, 2008, 10:22pm UTC](https://forum.kirupa.com/t/variables-from-xml-not-working/270257 "2008-09-07T22:22:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ph03nix](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@Ph03nix](https://forum.kirupa.com/u/Ph03nix)\
**Post date:** [September 7, 2008, 10:22pm UTC](https://forum.kirupa.com/t/variables-from-xml-not-working/270257/1 "2008-09-07T22:22:14Z")

</div>

I have a simple XML file. Here it is:

\<companies\>  
\<company\>  
\<url\>[http://www.website.com/](http://www.website.com/)\</url\>  
\<picture\>[http://www.picture.com/pic.jpg](http://www.picture.com/pic.jpg)\</picture\>  
\</company\>  
\</companies\>

obviously, that’s not the real XML file, however the url and picture urls I used in the real one are valid.

Now what I’m doing is i’m passing URL and PICTURE as parameters in a class constructer (not sure if i’m using the terms correnctly :beam:), and in that constructer I make a variable called refURL equal to url, the paramater. I’m trying to use those two parameters in a function within the class. When I trace refURL from the function, it is undefined. Does anyone know what I’m doing wrong?

Note: refURL is predefined as a String.
