[Uw-ruby] DOM or Stream parsing?
Richard Leickly
Richard at iphc.washington.edu
Sun Nov 18 00:39:36 PST 2007
I don't know all those acronyms; but it sounds like you are rolling in
some heavy artillary, Garrick !!
I used file.open() on the xml file. Quick. The greps and the operations
on the resulting arrays were also quick. I have a v. old Dell Platitude
laptop.
RD: maybe we could look at some of the more interesting solutions in
class. Sounds like GW has more tricks than Felix The Cat.
Richard Leickly
P.S. Yes...I am working on the weekend. Yes..I do have a life.
________________________________
From: uw-ruby-bounces at zenspider.com
[mailto:uw-ruby-bounces at zenspider.com] On Behalf Of Garrick West
Sent: Saturday, November 17, 2007 11:45 PM
To: Uw-ruby at zenspider.com
Subject: [Uw-ruby] DOM or Stream parsing?
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.zenspider.com/pipermail/uw-ruby/attachments/20071118/0fa1c186/attachment.html
More information about the Uw-ruby
mailing list