[Uw-ruby] DOM or Stream parsing?

Mark Holton holtonma at gmail.com
Sun Nov 18 01:45:20 PST 2007


Came across this tonight: XmlSimple library ...in the 'xml-simple' gem...
parses an XML document into a Ruby hash.

Guessing, and from what I read, there are no performance saving when sucking
in the XML, but the resulting object is easier to use -- ends up as nested
structure of Ruby hashes and arrays.

http://xml-simple.rubyforge.org/

:Holton


On Nov 17, 2007 11:44 PM, Garrick West <garrick at acm.org> wrote:

> Hi Ryan,
> I figured I'd send this to the list as others might be interested in your
> response:
>
> Wow.  That iTunes library is a bit of a monster to pull in with DOM, but
> it seems to work (at least on my system;).  The DTD is almost as simple as
> you can get, so it's not it would be too hard to do Stream parsing, but I
> question the value of doing so If you're not concerned about the load time.
>  It takes 54 seconds on my 2nd gen MacBook Pro using REXML, and I've seen
> some form posts googling around suggesting libxml is faster,
> but can be a pain to set up (possibly dated?).
>
> Thoughts?
> --Garrick West
>
> _______________________________________________
> Uw-ruby mailing list
> Uw-ruby at zenspider.com
> http://www.zenspider.com/mailman/listinfo/uw-ruby
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.zenspider.com/pipermail/uw-ruby/attachments/20071118/c212fbe5/attachment.html


More information about the Uw-ruby mailing list