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

library.xml

My iTunes library becomes corrupt about once a month and I have to restore the library from the xml file. I typically export my library.xml file daily. How can I do this with the latest iTunes app?

Windows 7

Posted on Dec 3, 2012 4:39 PM

Reply
Question marked as Best reply

Posted on Dec 3, 2012 5:02 PM

If you want to back up your library on a daily basis, it is far better to save the .itl file rather than creating an .xml file. Just look for "iTunes Library.itl" since that file is your library -- back that up religiously, and if you need to recover you simply replace the .itl file with the backed up copy.


Even if you prefer to have an .xml file, iTunes automatically creates one each time you make any changes. Look for "iTunes Library.xml", but the .itl file is much easier (and probably more reliable) since you don't have to "import" it, just replace your corrupted .itl file with the backed up copy.

18 replies
Question marked as Best reply

Dec 3, 2012 5:02 PM in response to sam adams

If you want to back up your library on a daily basis, it is far better to save the .itl file rather than creating an .xml file. Just look for "iTunes Library.itl" since that file is your library -- back that up religiously, and if you need to recover you simply replace the .itl file with the backed up copy.


Even if you prefer to have an .xml file, iTunes automatically creates one each time you make any changes. Look for "iTunes Library.xml", but the .itl file is much easier (and probably more reliable) since you don't have to "import" it, just replace your corrupted .itl file with the backed up copy.

Apr 3, 2013 5:42 AM in response to rockmyplimsoul

I have a similar query to this and have asked the question in a separate thread (so apologies if this duplicates).


My iTunes library became severly corrupt and I'm reluctant to mess around with it in anyway since it got fixed.


I have a Sonos wireless speaker system but it doesn't replicate my iTunes library successfully as I have two .xml files - and old one from when my Mac was first purchased (pre-corruption) and a newer one, which appears to be the "latest" xml file (constantly updates when I make any amends to iTunes).


Can I just delete the older view, or could it have any info in it that the "newer" xml file doesn't have?


I suspect that I can just delete it but I'm nervous after suffering severe problems when iTunes became corrupt previously.


Thank you

Apr 7, 2013 11:04 AM in response to rockmyplimsoul

I've deleted them both but unfortunately it doesnt quite reoslve my issue, which is with a wireless speaker system (Sonos).


The Sonos system doesn't accurately replicate iTunes. I thought it was because it was trying to read both xml files - as it was showing various old genres that I had, as well as the new ones. Hence, deleting the xml files and starting again should, in theory, have resolved the issue.


Any other ideas how I can resolve it?


Thank you

Apr 12, 2013 11:37 AM in response to Jerry Dammers

Jerry Dammers wrote:


Are there any implications from changing the ID3 tage of a track?

If you're going from v2.4 to 2.3, then no implications other than things may work better. For whatever reason, v2.4 is known to cause problems in iTunes, so Sonos' suggestion is probably correct.


You can change to 2.3 right from within iTunes, and if you make a smart playlist to gather up all your mp3's you can batch-convert them all to 2.3. Use the smart playlist criteria "Kind Contains mpeg", then select all tracks in the playlist, right-click, select "Convert ID3 Tags", check the "ID3 Tag Version" box and select version 2.3.


Although this should work just fine, you might want to back things up (your native files, and .itl library) before doing this. I would not anticipate any trouble (I've done this myself, but on an earlier version of iTunes) and had no problems.

Apr 12, 2013 11:52 AM in response to rockmyplimsoul

Thanks...sadly though, it appears that the tracks which are in a "misclassified" Genre on Sonos are not MP3 files in iTunes, so that might not be the issue after all.


I have also noticed that I have a number of other "XML Documents" files. They are not "XML Text" files, which is how the iTunes file is labelled. The XML Documents are named odd things like "Grid", "Black Tie" and "Time Zones'. When I open them they are text only files. It's not immediately obvious what they relate to. Might these be causing confusion for Sonos in reading the .xml library file?

Apr 12, 2013 12:44 PM in response to turingtest2

It's not a vanishing library issue thankfully. The issue I'm having is my Sonos wireless system is not reading the iTunes .xml library properly - so, for example, I have multiple genres on Sonos, whereas it looks fine on my Mac and iOS devices. I create my own Genres and use that as my primary method to navigate iTunes so it's a bit frustrating I can't replicate that on Sonos.

Apr 12, 2013 12:51 PM in response to Jerry Dammers

Ah yes, I'd read the original poster's issue and mixed it in with yours. 😕


Another potential issue with mp3 files is multiple tags where there is potential for iTunes to update only one set of data but other software to read a different set of information. In some circumstances iTunes can write data to one tag and then read back unchanged data from the other which can be most confusing as the update appears to take and then the values revert the next time the file is accessed.


Can you describe these "multiple genres" in more detail, what are you seeing?


tt2

Apr 12, 2013 1:04 PM in response to turingtest2

Can you describe these "multiple genres" in more detail, what are you seeing?



I create my own Genres for every track in my library - around 15 genres.


Some of them change over time - e.g. "1: 2012" gets replaced by "1: 2013" and becomes "2: 2012", etc.


This all works fine on my Mac and iOS devices - I update/change the Genres and it shows immediately.


However, on Sonos I have "1: 2013" AND "1: 2012" - it's as if it's reading old iTunes libraries as well as my latest version.

library.xml

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