Xml from php problem

Hi all, I’ve had to take over someone else’s code (nightmare) for this website. The client has asked for a certain section to be updateable. So this means retreiving the data via php/xml rather than php. Here are the 2 output files

Php file
http://www.mbla.net/people2.php

xml file
http://www.mbla.net/people.xml

The output is identical, however the php is giving me undefined errors in flash. Is this a common problem? This is the relevant code below, it’s basically loading in an image and text from the xml file. I’m really stuck, so any help would be appreciated.


 loaduser = "people2.php";
 xmlpeople = new XML();
 xmlpeople.ignoreWhite = true;
 xmlpeople.load(loaduser);
 var content = xml;
 loadNow(content, "XML", 0);
 xmlpeople.onLoad = function(whichsuccess) {
  if (whichsuccess) {
   peopleAtts = xmlpeople.firstChild;
   PROFILELENGTH = xmlpeople.firstChild.childNodes.length;
   peopleIntroCopy = new Array();
   peopleTitle = new Array();
   peopleName = new Array();
   peopleQual = new Array();
   peopleCopy = new Array();
   peopleImg = new Array();
   peoplePage = new Array();
   PEOPLETITLELENGTH = new Array();
 
////this is the bit that desn't work/////////
case WHICHPEEPS :
    for (i=0; i<PROFILELENGTH; i++) {
     if (peopleTitle* == WHICHPEEPS) {
      replacedText = originalString.replace('[', '<');
      replacedText2 = replacedText.replace(']', '>');
      TMP_COPYL = "<span class='bodytxt'>"+replacedText2+"</span>";
      TMP_IMG = peopleImg*;
      //TMP_PROJTXT = TMP_PEOPLE+""+TMP_COPYL+newline+newline;
      TMP_PROJTXT = TMP_COPYL+newline+newline;
      loadteam(null, TMP_IMG);
      //
     }
    }
    break;
 

Thanks

Richard