From: Mike Cargal Date: 2007-07-21T10:43:25+09:00 Subject: Re: parsing iTunes Libary I also recently needed to parse the AlbumData.xml. Started into it with REXML and realized that it was becoming something of a pain do to the rather inane XML that Apple uses. So I searched around and found the plist gem. It parses it (and other files that use the same strucure_ and gives you hashmaps that you can navigate rather easily. It is probably slower than the regex code here and it loads everything into memory. But I found it pretty helpful. Ryan Davis wrote: > > On Jul 20, 2007, at 05:40 , cypher.dp@gmail.com wrote: > >> I thought about writing something like that: >> http://code.google.com/p/itunes-to-rhythmbox-ratings/ >> >> I wanted to parse the library with REXML but the file is quite big. >> >> Is there a possibility to parse only a part of the file ? > > I just use regular expressions: > > http://blog.zenspider.com/archives/2007/03/that_stupid_thing_i_wrote_the_other_day_part_2.html > > > > >