Hello,

I am having a problem with the xml/libxml Ruby Gem

doc = XML::Document.file('myfile.xml')
mynodes = doc.find('[xpath statement here]')
mynodes.length
=> 20
mynodes.first
=> NoMethodError: undefined method `first' for 
#<XML::Node::Set:0x31039c>

The Doc does mention a "first" method for XML::Node::Set. Is this a bug?


Thanks!
Ingo

-- 
Posted via http://www.ruby-forum.com/.