In this post, I mentioned how it would be great if Apple made the API to parse the iTunes library available. Johnathon S. wrote that he doesn't think that Apple has made this public.
I found some other solutions for this:
- ITMLReader is a java class that will parse the iTunes library xml file.
- This page mentions using xsd to parse the file into native structures. When doing this you will have to convert the DTD to an xml schema.
- PHPtunest is a php script that parses the xml file and creates an html page.