Woops! Already solved! 
code:
//Get the XML data and return it
function getXMLData($i) {
    global $content2;
    $data = str_replace(array("<Details>","</Details>"), "", $content2);
    $data0 = preg_replace("/^<Username>(.*?)<\/Username>(.*?)$/","\\1", $data);
    $data1 = preg_replace("/^(.*?)<PSM>(.*?)<\/PSM>(.*?)$/","\\2", $data);
    $data2 = preg_replace("/^(.*?)<Status>(.*?)<\/Status>(.*?)$/","\\2", $data);
    eval("return \$data$i;");
}
Heh... well, thanks for reading. 
