'; foreach ($xml->track as $value){ print "".$value->artists." - "; print $value->title.""; } echo ''; } else{ echo 'Error with the call_api.php!'; } ?>