# XML Problems

**URL:** <https://forum.kirupa.com/t/xml-problems/185355>\
**Category:** flash\
**Created:** [April 12, 2006, 6:19pm UTC](https://forum.kirupa.com/t/xml-problems/185355 "2006-04-12T18:19:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pln1llyln0clc3y](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pln1llyln0clc3y](https://forum.kirupa.com/u/pln1llyln0clc3y)\
**Post date:** [April 12, 2006, 6:19pm UTC](https://forum.kirupa.com/t/xml-problems/185355/1 "2006-04-12T18:19:06Z")

</div>

I’m creating a website for a local company and I am loading the text in with xml. Everything works fine on my machine, but when I upload it any changes that I make to the xml file don’t take effect in the flash page, even after refreshing, and closing and reopening. (All files are in the same domain and it loads okay the first time, but any changes don’t take effect).

I used the kirupa tutorial for xml and this is my code for loading the xml

```
 ActionScript Code:
 [FONT=Courier New][LEFT][COLOR=#000000] **function** [/COLOR] loadXML[COLOR=#000000]([/COLOR][COLOR=#0000ff]loaded[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#0000ff]loaded[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
    sectionContent = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]1[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]0[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]nodeValue[/COLOR];
[COLOR=#000000]}[/COLOR]

```

[COLOR=#000000]}[/COLOR]  
xmlData = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]XML[/COLOR]COLOR=#000000[/COLOR];  
xmlData.[COLOR=#0000ff]ignoreWhite[/COLOR] = [COLOR=#000000] **true** [/COLOR];  
xmlData.[COLOR=#0000ff]onLoad[/COLOR] = loadXML;  
xmlData.[COLOR=#0000ff]load[/COLOR]COLOR=#000000[/COLOR];  
format = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]TextField[/COLOR].[COLOR=#000080]StyleSheet[/COLOR]COLOR=#000000[/COLOR];  
path = [COLOR=#ff0000]“styles.css”[/COLOR];  
format.[COLOR=#0000ff]load[/COLOR]COLOR=#000000[/COLOR];  
format.[COLOR=#0000ff]onLoad[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
content\_txt.[COLOR=#000080]styleSheet[/COLOR] = format;  
content\_txt.[COLOR=#0000ff]htmlText[/COLOR] = sectionContent;  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR];  
[/LEFT]  
[/FONT]

---

<div class="post-metadata">

**Author:** ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)\
**Post date:** [April 12, 2006, 6:34pm UTC](https://forum.kirupa.com/t/xml-problems/185355/2 "2006-04-12T18:34:07Z")

</div>

Clear the IE data.

---

<div class="post-metadata">

**Author:** ![pln1llyln0clc3y](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pln1llyln0clc3y](https://forum.kirupa.com/u/pln1llyln0clc3y)\
**Post date:** [April 12, 2006, 6:39pm UTC](https://forum.kirupa.com/t/xml-problems/185355/3 "2006-04-12T18:39:41Z")

</div>

> [@simpleSoft](#):
>
> Clear the IE data.

I’m using Firefox, but same deal. Works great now, thanks, but how can I clear out the stuff for my page when someone else goes to it, because I can’t have them clear everytime they go there?

**Edit:**  
Got it instead of loading “myxml.xml” I had to change it to  
myUniq=random(10000);  
and then load (“myxml.xml?uniq=”+myUniq), so that it thinks its a new page and uses that one instead of the one in the cache.
