# Loading XML from PHP

**URL:** <https://forum.kirupa.com/t/loading-xml-from-php/185097>\
**Category:** flash\
**Created:** [April 10, 2006, 10:32pm UTC](https://forum.kirupa.com/t/loading-xml-from-php/185097 "2006-04-10T22:32:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poco](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@Poco](https://forum.kirupa.com/u/Poco)\
**Post date:** [April 10, 2006, 10:32pm UTC](https://forum.kirupa.com/t/loading-xml-from-php/185097/1 "2006-04-10T22:32:26Z")

</div>

Hi guys, I guess this is going to be easy.  
Let’s say I am loading xml from convert.php. Can I do it by simply calling it like:

```auto

function loadXML(file) {
    xml = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function(success) {
        if (success) {
            trace("XML loaded");
        } else {
            trace("Warning! XML hasn't been loaded!");
        }
    };
    xml.load(file);
}
loadXML("convert.php"); //it is of course in same folder

```

Thanks for answers!  
Regards,  
Poco
