📅  最后修改于: 2022-03-11 14:54:47.534000             🧑  作者: Mango
foreach($equipxml as $equip) {
$current_device = $equip->xpath("name");
if ( $current_device[0] == $device ) {
// found a match in the file
$nodeid = $equip->id;
break;
}
}