Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

My "itunes library" folder is empty. My libray music (prior to upgrading itunes) is now in an .xml file in my itunes location under my music. How do I extract/convert this .xml file to a Itunes database and restore my Itunes music library??? Thanks, Tom

My "itunes library" folder is empty. My libray music (prior to upgrading itunes) is now in an .xml file in my itunes location under my music. How do I extract/convert this .xml file to a Itunes database and restore my Itunes music library??? Thanks, Tom

Windows XP Pro

Posted on May 7, 2012 9:51 AM

Reply
5 replies

May 7, 2012 10:20 AM in response to Squibby 64

Empty/corrupt library after upgrade/crash

Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.


User uploaded file


See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.


When you get it all working make a backup!


tt2

May 7, 2012 10:50 AM in response to turingtest2

Did not work. All 5 "previous itunes libraries" are empty. My old, wanted library only exists in the .xml file. Itunes is not recognizing this file. I went to add this file to Itunes via the Itunes file command and it will not import it into my library. Seems like I need to change the .xml file into Itunes database that Itunes recognizes and imports

May 7, 2012 11:13 AM in response to Squibby 64

Are you sure? Did you do as instructed or double-click each file to see what it contained? iTunes always opens the last file opened, not the file you double-clicked.


My post assumes that you've not somehow got iTunes connected to a non-standard library file already. If there is any reason for doubt then, after placing one of the older library files in the main iTunes folder, hold down shift as you start iTunes so that you get options to "Choose or create a library", then choose the library file in question.


FYI the xml file is provided for thrid party support and contains some but not all of the information held in the main iTunes Library.itl database. iTunes doesn't really make any use of the xml file, though it can sometimes be used automatically for a partial reconstruction of the database when the itl file is damaged. Restoring an older backup copy of the itl file and then making it reflect the content of the media folder using the tools suggested will preserve date added information which would otherwise be lost.


tt2

My "itunes library" folder is empty. My libray music (prior to upgrading itunes) is now in an .xml file in my itunes location under my music. How do I extract/convert this .xml file to a Itunes database and restore my Itunes music library??? Thanks, Tom

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.