load($playlist); // Get the tracks $playlist = $doc->getElementsByTagName("track"); // Start the list foreach( $playlist as $track ) { // Get the variables $time = $track->getElementsByTagName("timetoplay"); $artist = $track->getElementsByTagName("artists"); $title = $track->getElementsByTagName("title"); // Work out some stuff $time = $time->item(0)->nodeValue; $artist = $artist->item(0)->nodeValue; $title = $title->item(0)->nodeValue; print('
De commentaren zijn gesloten