My iTunes library has disappeared and looking in the Music/iTunes folder, I see an 'iTunes Library (Damaged)' file. All of the music appears to still be there, so I am guessing it is just the database that is damaged. Is there a way to recover the library, like from the xml file? There is also a folder with Previous iTunes Libraries that are a couple months old. Can I just copy and rename one of those files?
Apple's documentation on recreating your iTunes library if it is corrupt:
Last Modified: April 07, 2011
I just copied one of the backup files from the 'Previous iTunes Libraries' folders and renamed it to iTunes Library which was quick and easy. I imagine the effectiveness of this solution depends on how old these files are as they are meant to be a backup for upgrading iTunes rather than a timely backup. It worked well for me though and I didn't have to re-create playlists or download album artwork.