From: "ara.t.howard" Date: 2008-04-04T09:45:35+09:00 Subject: Re: ruby xml parser opinions? On Apr 3, 2008, at 1:00 PM, Andy Koch wrote: > 'm revisiting an app that uses libxml for xml work. Wondering if > anyone has opinions on what is the best available XML parser for Ruby? > > REXML seems to get trashed at every opportunity. Hpricot is getting > some good press, but is it better than libxml? Most posts I've seen > when someone chooses hpricot over libxml is because they are running > on Windows. > > Found this post "http://yomi.at/archives/19" which seems recent and > clearly shows libxml as the parser of choice when speed is the primary > consideration. > > Any thoughts? > depends entirely on your use case - skimming a small amount of data from nested nodes -> hpricot - parsing a hierarchy where attrs and relationship of parent <-> child is important -> rexml a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama