<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0">
	<body>
		<seq>
<?php
foreach ( $attachments as $attachment ):
	echo "\n\t"
		. Playlist_Maker::get_XML_element( 'ref'
		, array(
			'src' => wp_get_attachment_url($attachment->ID)
			, 'title' => $attachment->post_title
			, 'type' => $attachment->post_mime_type ));
endforeach;
?>
		</seq>
	</body>
</smil>