Php>xml>as3

Hi im having problems loading data from a php file into as3 as xml. just cant figure out why…

this is my code.

in php (the code is just temporary, the goal is to loop through a folder and list its content. and ive tried this one http://www.kirupa.com/forum/showthread.php?t=291047 and still cant get it to work.

<?php  
header("Content-type: text/xml");  

$xml_output = "<?xml version='1.0' encoding='utf-8' standalone='yes'>";  
$xml_output .= "<images>"; 
 
    $xml_output .= "<pic>"; 
    $xml_output .= "<image>'sdfhej'</image>"; 
    $xml_output .= "<caption>'hejsf'</caption>"; 
    $xml_output .= "</pic>";  
     
$xml_output .= "</images>";  

echo $xml_output;  
?>

this is how i load it in as3

var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("../../listamappinnehall.php"));
myLoader.addEventListener(Event.COMPLETE, processXML);

function processXML(e:Event):void {
myXML = new XML(myLoader.data);

trace(myXML);

}

it traces out a blank row… and if i try it with a real xml file it works just fine… what am i doing wrong?