Thanks. I found something like that, but with the reservation that using that XML file won't keep certain data such as your playcounts. (So "most played" smart playlists won't work anymore.)

Still, it keeps your ratings and playlists, and may be the best option available. And I have TextWrangler to manipulate the XML with.

STROGG: Change We Can Believe In