<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">

	<title><?php echo $this->get_playlist_value('title'); ?></title>
	<info><?php bloginfo_rss('url'); ?></info>
	<image><?php echo $this->get_playlist_value('image'); ?></image>

	<trackList>
<?php if ( ! empty($attachments) ): ?>
	<?php foreach ($attachments as $attachment): ?>
		<track>
			<title><?php echo Playlist_Maker::get_track_value('title', $attachment, true); ?></title>
			<location><?php echo Playlist_Maker::get_track_value('location', $attachment, true); ?></location>
			<annotation><?php echo Playlist_Maker::get_track_value('annotation', $attachment, true); ?></annotation>
			<creator><?php echo Playlist_Maker::get_track_value('creator', $attachment, true); ?></creator>
			<album><?php echo Playlist_Maker::get_track_value('album', $attachment, true); ?></album>
			<info><?php echo Playlist_Maker::get_track_value('info', $attachment, true); ?></info>
		</track>
	<?php endforeach ?>
<?php else: ?>
	<!-- Couldn't find any tracks -->
<?php endif; ?>
	</trackList>
</playlist>