Loading XML from PHP

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:


 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

yes you can