I still can't figure out how to effect changes in the
iTunes library by editing the xml file. I tried a
couple approaches and both seem to confirm that the
library overwrites the xml file.
Yes, that's true.
1. Removed the library and restarted iTunes: A new
library was created, empty of course, and the xml
file reflected this i.e. it was also empty (except
for the headers, etc.)
2. Removed the library, edited and re-saved the xml,
then dragged the library back in: The xml file
reverted to its pre-edit state.
It seems the xml file is simply a reflection of the
iTunes library, and as such changes to song info,
playlists, etc can only be made using iTunes.
Yes, right, again. I don't think you've done quite what I have in mind yet.
Try it this way. Close iTunes. Drag the library file somewhere else for safekeeping. Edit the XML file. Open iTunes. It will be empty, as you saw in your trial #1. Now, Import the edited XML file. That will populate your iTunes library with the contents of the edited XML file.
I hope this works for you. I've used this method for a couple of chores. I will say that I ran into unexpected results once, with iTunes not being able to find some songs listed in the XML file at Import, even though I had not touched the song files or the song entries in the XML file. It feels like iTunes-iTunesLibrary-XMLfile-Finder integration can mysteriously intervene at times.
But as long as you keep your original library file somewhere and don't move the song files around, it's easy to restore the previous state, so there's no big risk in trying this out.
iMac G4 17; iBook G4 1.33 Mhz 14; iPod 3G 20GB Mac OS X (10.3.9)