",implode(' ', $errors), "

"; exit; } //get all the condition&response associations for RMC foreach ($xml->children() as $response) foreach($response->children() as $data) { //get the data from xcatd $record = split('"',$data); echo ""; echo <<$record[1] $record[3] $record[5] $record[7] TOS6; //TODO: insert the button here echo ""; if($record[7] == "Active") { echo ""; }else { echo ""; } echo ""; echo ""; } // echo ""; ?>