Variables from XML not working!

I have a simple XML file. Here it is:

<companies>
<company>
<url>http://www.website.com/</url>
<picture>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.