From: Robert Klemme Date: 2008-04-04T18:39:53+09:00 Subject: Re: ruby xml parser opinions? 2008/4/3, Andy Koch : > I'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. It may seem so. But keep in mind that if something does not work as expected people will shout loudly - while all those that are satisfied are usually quietly enjoying it. Whenever I have to do XML in Ruby I use REXML. Granted, I don't have large files to handle right now but if, I would try using REXML's stream parser instead of doing anything else. > 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. Probably true, but with the stream based approach you can also get more out of REXML. I like the fact that it does not require a binary extension and is part of the standard install. Ultimate speed for me is not as important as availability and portability of my scripts. YMMV Kind regards robert -- use.inject do |as, often| as.you_can - without end