libxspf (formerly called libSpiff) is a C++ library for reading and writing XSPF playlists. Both version 0 and 1 are supported. It is the official reference implementation for XSPF of the Xiph.Org Foundation.