function getAFSForList($afsID) { $afs = new AFS(); $afs->selectRecordForList($afsID); if (!($domDoc = $afs->getDomDocument())) { return false; } else { $xmlStr = $domDoc->dump_mem(true); return $xmlStr; } }