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

A

ayqazi

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
 

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

Forum statistics

Threads
474,283
Messages
2,571,405
Members
48,098
Latest member
inno vation

Latest Threads

Top