load('data.xml'); $dataNode = $data->getElementsByTagName('data')->item(0); $mcupdatesNode = $dataNode->getElementsByTagName('mcupdates')->item(0); $releaseS = $mcupdatesNode->getElementsByTagName('release'); $text = ''; for ($i = $releaseS->length; $i > 1; $i--) { $release = $releaseS->item($i-1); $releaseInfos = $release->getElementsByTagName('infos')->item(0); $text .= '

Minecraft '.$release->getAttribute('name').' '; if (isset($prevRelease)) { if ($release->getAttribute('name') == $prevRelease->getAttribute('name')) { $text .= '(version enterrée) '; } } $shortDescription = $releaseInfos->getAttribute('shortDescription'); if ($shortDescription == 'false') { $shortDescription = 'Pas de description.'; } $text .= '

'.$shortDescription.'
'; $prevRelease = $release; } ?> Minecraft Checker

Minecraft Checker

Rechercher des versions

Versions référencées