iTunes Library XML Reader
Here's a quick class that can be used to read your iTunes library XML file and create a DataSet. There are a few of these around, but I've made sure this supports the latest version of iTunes. The basic skeleton for what I've done came from here.
Here's the download.
Here's the download.
To use this create a bit of code like this:
iTunesLibraryImporter i= new iTunesLibraryImporter();
i.iTunesMusicDirectoryName = @"C:\Users\me\Music\iTunes";
i.ColumnErrorAction = iTunesLibraryImporter.ColumnErrorActionCode.AutoCreate;
i.Import();
The ColumnErrorAction will automatically create new data columns in the typed dataset if the iTunes library contains columns that were not included in the typed dataset (which often happens when Apple updates iTunes).
There are no comments.