# String var simple problem

**URL:** https://forum.kirupa.com/t/string-var-simple-problem/280019
**Category:** Uncategorized
**Created:** [January 21, 2009, 5:49pm UTC](https://forum.kirupa.com/t/string-var-simple-problem/280019 "2009-01-21T17:49:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![snozbunny](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@snozbunny](https://forum.kirupa.com/u/snozbunny)
#### Post date: [January 21, 2009, 5:49pm UTC](https://forum.kirupa.com/t/string-var-simple-problem/280019/1 "2009-01-21T17:49:08Z")

</div>

Hi guys,

I’m having a hard time setting a XML value as a String for some reason. I’m sure it’s easy but nothing works today.

Anyways, I tried pushing it to a string var but that doesn’t work. My solution is easy but I’m pretty sure it’s not the right way to go about it.

```php

preloader.add("" + xmlvar.over + "");

```

The quotes forces it into a string but like I said, it’s probably not the right way to go about it… IE “xmlvar.over:String”

Little help? :love\_heart:
