Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > rexml alternatives

Reply
Thread Tools

rexml alternatives

 
 
Jan Luehr
Guest
Posts: n/a
 
      09-13-2008
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
 
Reply With Quote
 
 
 
 
Emmanuel Surleau
Guest
Posts: n/a
 
      09-13-2008
[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.

On Sat, Sep 13, 2008 at 12:03 PM, Jan Luehr <> wrote:

> 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
>
>


 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      09-13-2008
On 13.09.2008 12:08, Jan Luehr wrote:
> - 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rexml alternatives Jan Luehr Ruby 0 09-13-2008 10:05 AM
REXML::Element.write is deprecated. See REXML::Formatters Phlip Ruby 0 01-15-2008 08:23 PM
rexml error - REXML::Validation Daniel Berger Ruby 2 10-12-2004 04:19 PM
soap4r 1.4.8.1 with REXML 2.7.1 - no REXML::VERSION_MAJOR Damphyr Ruby 2 07-16-2003 09:49 AM
rexml warnings Ronald Pijnacker Ruby 0 07-11-2003 08:01 AM



Advertisments