# MX04 - External xml wont load

**URL:** <https://forum.kirupa.com/t/mx04-external-xml-wont-load/200186>\
**Category:** programming\
**Created:** [September 9, 2006, 6:10pm UTC](https://forum.kirupa.com/t/mx04-external-xml-wont-load/200186 "2006-09-09T18:10:32Z")\
**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 9, 2006, 6:10pm UTC](https://forum.kirupa.com/t/mx04-external-xml-wont-load/200186/1 "2006-09-09T18:10:32Z")

</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, it’s just blank

here is my flash file script:

```auto
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")
}

```

and the php script looks like:

```php
<?php

$dataURL = "http://www.w3schools.com/xml/simple.xml";

readfile($dataURL);

?> 

```

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 solve this problem.
