# Xml caching solution with var

**URL:** https://forum.kirupa.com/t/xml-caching-solution-with-var/245701
**Category:** Uncategorized
**Created:** [December 3, 2007, 6:11am UTC](https://forum.kirupa.com/t/xml-caching-solution-with-var/245701 "2007-12-03T06:11:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![moodie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/moodie/32/1905_2.png) [@moodie](https://forum.kirupa.com/u/moodie)
#### Post date: [December 3, 2007, 6:11am UTC](https://forum.kirupa.com/t/xml-caching-solution-with-var/245701/1 "2007-12-03T06:11:17Z")

</div>

Hi,

after doing a bit of a search, I came upon this solution for the xml caching issue:

```auto
 xml.load(&#8221;xmlFile.xml?&#8221;+Math.random());

```

the problem is my xml file is a variable being passed from the html, so I was wondering how to write this without the inverted commas?

```auto
xmlData.load("_root.varXML?"+Math.random());listen = new Object();

```

any help would be great.
