From: Michael Schuerig Date: 2002-03-18T09:03:10+09:00 Subject: Re: XPath Tobias Reif wrote: > Michael Schuerig wrote: [deliriously suggested to do something by hand that could also be done by a Ruby script.] > nah... > > as I wrote: > 2. If memory becomes a problem think about streaming APIs. Memory is not a problem. The aborted run took about 100MB, which is fine as I have 640MB. But it's just too slow. I'll use some kind of streaming API (SAX?). As I need only very basic functionality, I might even hand-roll the parsing, if speed necessitates it. Putting entries in hashes keyed by title will probably be magnitudes faster than XPath. Well, then I'll freshen up my Ruby skills instead of XSLT/XPath. Anyway, I don't expect to find the time until next weekend. BTW, is it intentional that REXML barfs on ISO-8859-1 encoding? On a slightly heretic note, has somebody thought of wrapping libxml/libxslt (http://xmlsoft.org/)? These two libs are used by Gnome and KDE on Linux/Unix, thus are widely available. There's also a port to windows. Hm, I just see that there are bindings for Python -- maybe I need to learn yet another language... Michael -- Michael Schuerig GPG Fingerprint mailto:schuerig@acm.org DA28 7DEB 5856 3365 BED9 http://www.schuerig.de/michael/ 8365 0A30 545A 82D2 05D7