Hi,

The following program:

require 'rexml/document'
require 'rexml/xpath'
require 'pp'

doc = REXML::Document.new('
<program>
  <item rnum="1"/>
  <item rnum="1:abc"/>
</program>')

REXML::XPath.each(doc.root, '/program/item[@rnum="1"]') do |el|
  puts el
end
# end of example program

produces:

<item rnum='1'/>
<item rnum='1:abc'/>

Is this correct? I would have expected only the first item to be returned.

Cheers,