rexml alternatives

J

Jan Luehr

Hello,

I really like coding ruby or ruby on rails apps, but rexml often leads to
frustration.
- If I use xpath in watir-tests rexml takes plenty of time evaluating and
execution time jumps from seconds to minutes.
- Some rails apps I've written rely on rexml and xpath as well. I
encountered strange xpath-results that mysteriously went away when
upgrading ruby from 1.8.5 to 1.8.6.
By that, rails apps using xpath developed on my laptop (Debian Lenny, Ruby
1.8.6) might fail in production on servers running debian etch.

Since Ruby does support C/C++ bindings, I wonder if anyone have tried to use
xerces instead (Googling for ruby-xerces shows a few posts but nothing
serious) or if there are any other alternatives to rexml.

Do you know any?
Thanks in advance,
Keep smiling
yanosz
 
E

Emmanuel Surleau

[Note: parts of this message were removed to make it a legal post.]

You can try libxml-ruby, I hear it's been rewritten and should be working
pretty well now. Otherwise there's hpricot, while not supporting real XPATH,
can get you pretty far. But libxml-ruby will be faster.
 
R

Robert Klemme

- Some rails apps I've written rely on rexml and xpath as well. I
encountered strange xpath-results that mysteriously went away when
upgrading ruby from 1.8.5 to 1.8.6.

Did you investigate this? It may well be that there were bugs in 1.8.2
that have been removed in 1.8.6.

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top