# External xml wont load

**URL:** https://forum.kirupa.com/t/external-xml-wont-load/200248
**Category:** Uncategorized
**Created:** [September 10, 2006, 4:44pm UTC](https://forum.kirupa.com/t/external-xml-wont-load/200248 "2006-09-10T16:44:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jablinsk](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@Jablinsk](https://forum.kirupa.com/u/Jablinsk)
#### Post date: [September 10, 2006, 4:44pm UTC](https://forum.kirupa.com/t/external-xml-wont-load/200248/1 "2006-09-10T16:44:01Z")

</div>

If I have the xml load directly from the flash (ie, I have it go directly to the site, instead of through ‘proxy.php’), it will load the data from the xml, but when I have it go through a php script, nothing shows up, the text file is completely blank, it doesnt even say “Couldn’t Load”.

here is my flash file script:

```auto
[LEFT]xmlGetBtn.onRelease = function(){
var xmlProxy:XML = new XML();
xmlProxy.ignoreWhite = true;
xmlProxy.onLoad = function(bSuccess:Boolean):Void {
    if(bSuccess) {
        xmlDataBox.text = this;
    }
    else {
        xmlDataBox = "Couldn't Load";
    }
};
xmlProxy.load("Proxy.php")
}[/LEFT]
    

```

and the php script looks like:  
[LEFT]

```php
<?php
$dataURL = "http://www.w3schools.com/xml/simple.xml";
echo readfile($dataURL);
?>

```

```
       [/LEFT]

```

I have tried every tutorial and script I could find, but nothing seems to work.  
Also, is it possible to load external data into flash from a .jsp?

Thanks alot if anyone can help me try to solve this problem.
