",implode(' ', $errors), "
";
     exit;
 }
 #then, parse the xml data
 $ooe = 0;
 $line = 0;
 foreach($xml->children() as $response) foreach($response->children() as $data) {
     list($name, $stat, $nodemonstatus) = preg_split("/\s+/", $data);
     $ooe = $ooe%2;
     echo "";
     echo " | ";
     echo "$name | ";
     echo "$stat | ";
     if(isset($nodemonstatus)) { echo "Enabled | ";}else {echo "Disabled | ";}
     echo "";
     $name_str = "\"$name\"";
     if($stat == "monitored") {
         $act_str = "\"stop\"";
         insertButtons(array('label'=>'Stop', 'id'=>'stop', 'onclick'=>"monsetupAction($name_str, $act_str)"));
         $act_str = "\"restart\"";
         insertButtons(array('label'=>'Restart', 'id'=>'restart', 'onclick'=>"monsetupAction($name_str, $act_str)"));
     }else {
         $act_str = "\"start\"";
         insertButtons(array('label' => 'Start', 'id'=>'start', 'onclick' => "monsetupAction($name_str, $act_str)"));
     }
     echo " | ";
     echo "   
";
     $ooe++;
     $line++;
     //echo "| $name | $stat | $name | 
";
 }
?>