Addresses from XML

'; foreach( $xml as $user ) { if($user->firstname == 'Davo') { echo '*** Dave is spelled wrong ***
'; } echo 'Firstname: '.$user->firstname.'
'; echo 'Surname: '.$user->surname.'
'; echo 'Address: '.$user->address.'
'; echo 'City: '.$user->city.'
'; echo 'Country: '.$user->country.'
'; echo 'Email: '.$user->contact->phone.'
'; echo 'Email: '.$user->contact->url.'
'; echo 'Email: '.$user->contact->email.'
'; echo '=======================
'; } } ?>