setParserProperty(2,true); // This seems a little unclear to me - but it worked :) $xml->Open($URL); while ($xml->read()) { switch ($xml->name) { case "servername": $xml->read(); $info['sarvername'] = $xml->value; $xml->read(); break; case "owner": $xml->read(); $info['owner'] = $xml->value; $xml->read(); break; case "patch": $xml->read(); $info['patch'] = $xml->value; $xml->read(); break; case "registration": $xml->read(); $info['registration'] = $xml->value; $xml->read(); break; case "maxplayers": $xml->read(); $info['maxplayers'] = $xml->value; $xml->read(); break; case "xp": $xml->read(); $info['xp'] = $xml->value; $xml->read(); break; case "playerscount": $xml->read(); $info['playerscount'] = $xml->value; $xml->read(); break; } } return $info; } // END function GetServerInfo $info = GetServerInfo('http://wow.zdechov.net/projectonlineplayes/create_xml.php'); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
ServerName: '.$info['sarvername'].'
Vlastník serveru: '.$info['owner'].'
Patch serveru: '.$info['patch'].'
Registrace: '.$info['registration'].'
Maximální počet hráčů: '.$info['maxplayers'].'
XP Rate: '.$info['xp'].'
Počet hráčů: '.$info['playerscount'].'
'; ?>