Since Option
is child of User
you can't be expecting $xml->Users->User->Option
to start at the current user node.
You could reference Option
for the current $user
as follows:
foreach ($xml->Users->User as $user) {
echo "<strong>".$user['Name']."</strong><br />";
foreach ($user->Option as $option) {
if ($option['Name'] == "Pass") {
echo $option."<br />";
}
}
echo "<br />";
}