/**
  * Call the server
  * @private
  * @return boolean TRUE - if success
  */
 function __generate()
 {
     $xml = $this->__getXML();
     $tree = GetXMLTreeFromString($xml);
     unset($snoopy);
     if (empty($tree[0]['tag'])) {
         $this->_error = 'ERROR: INVALID XML RESPONSE';
         return FALSE;
     }
     if ($tree[0]['tag'] != 'CROSSWORD') {
         $this->_error = 'ERROR: ' . $tree[0]['value'];
         return FALSE;
     }
     return $this->__load($tree[0]['children']);
 }
Beispiel #2
0
function GetXMLTree($file)
{
    $data = implode('', file($file));
    return GetXMLTreeFromString($data);
}