[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

New way to search by attribute value in REXML on ruby 1.8.6?

ayqazi

2/5/2008 1:06:00 PM

Hi,

I've been previously using things like:

stuff = infdata.elements["domain:contact[@type='admin']"].text

quite heavily.

Upgrading to ruby 1.8.6 make this return a blank string.

I'm using Gentoo's ruby ebuild, which I assume would patch any bugs,
so I'm guessing there's a new way to do it.

Anybody know how I can search for a sub-element with a particular
attribute value as above in ruby 1.8.6's REXML?

Thanks