XML Sharable Playlist
XML Sharable Playlist (XSPF) (pronounced "spiff", but not to be confused with SPIFF) is an open playlist format based on XML.
It provides no information about the metadata within or about the file present in the playlist. This is a deliberate decision not to compete with the already existing formats, and because metadata answers a completely different question than a playlist format. Metadata may, however, be linked from the playlist and will be loaded in accordance with the format of those files.
<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> <track><location>file:///song_1.ogg</location></track> <track><location>http://www.example.com/music/song_2.spx</location></track> <track><location>ftp://ftp.example.org/public/song_3.mp2</location></track> </trackList> </playlist>
In this example there are three songs in the playlist. The first one is on the local computer. The second one is on the HTTP server. And the final one is on the FTP server. It should be noted that local files are still to be recorded via the URI, not simply as a path.