HadleyNet.Org: Blogtastic

July 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Jun   Aug

Click to see the XML version of this web page.

Updated: 16/8/02; 2:16:56 pm.

Thursday, July 18, 2002

I just upgraded to iTunes 3.0 and found a nice surprise in my Music/iTunes folder: "iTunes Music Library.xml". It lists every track in the library plus all the playlists you create - mine is 1.2MB.

The schema is a little unusual for XML, everything is key value based so a track looks like:

<key>35</key>
<dict>
   <key>Track ID</key><integer>35</integer>
   <key>Name</key><string>Monday</string>
   <key>Artist</key><string>Wilco</string>
   <key>Album</key><string>Being There</string>
   <key>Genre</key><string>Rock</string>
   ...
</dict>

But its amenable to XSLT processing so it should be easy to produce a library summary or something along those lines.