' . $xmlString; } try { $xml = new SimpleXMLElement($xmlString); } catch (Exception $e) { echo "Erreur de parsing XML : " . $e->getMessage(); exit; } $definitions = []; foreach ($xml->xpath("//OptionDefinition") as $optDef) { $definitions[(string)$optDef->OptionId] = (string)$optDef->Name; } ?> Web Infra Reports IT

xpath("//IPv4/OptionValues/OptionValue"); foreach ($globalOptions as $opt): $idx = (string)$opt->OptionId; $vals = []; foreach ($opt->Value as $v) $vals[] = (string)$v; ?>
-
VendorClass; ?>
xpath("//Scope") as $scope): $scopeIdRaw = (string)$scope->ScopeId; $cleanId = "scope_" . str_replace('.', '', $scopeIdRaw); $scopeName = (string)$scope->Name; ?>
: StartRange; ?>
: EndRange; ?>
: SubnetMask; ?>
OptionValues->OptionValue as $sOpt): $sIdx = (string)$sOpt->OptionId; $sVals = []; foreach ($sOpt->Value as $sv) $sVals[] = (string)$sv; ?>
VendorClass; ?>
Reservations->Reservation ?? null; if ($reservations): foreach ($reservations as $res): ?>
IPMACDescription
Name; ?> IPAddress; ?> ClientId; ?> Description; ?>
Aucune réservation sur ce scope