i Tunes keeps track of songs by creating a virtual library, allowing users to access and edit a song's attributes.
Detailed third-party instructions regarding this are documented elsewhere.
Beginning with i Tunes 10.5.3 this behavior has been changed such that the XML file is not read automatically to recreate the database when the database is corrupted.
It caches information like artist and genre from the audio format's tag capabilities (the ID3 tag, for example) and stores i Tunes-specific information like play count and rating.
i Tunes typically reads library data only from this file.
Apple's own i DVD, i Movie, and i Photo applications all access the library.
If the first file exists but is corrupted, such as by making it zero-length, i Tunes will attempt to reconstruct it from the XML file.Rather, the user should load the i Tunes file via File Import Playlist....It has also been noted that i Tunes does not automatically track changes to actual files in the library.For example, i Tunes once gave users the option to display arrows beside the selected song's title, artist, album, and genre that link directly to the i Tunes Store.These arrows are no longer removable, except through the direct editing of a preferences file.A second file can also be created if users activate a preference; the i Tunes Music file is refreshed whenever information in i Tunes is changed.