Help with libxml

hi - i’m pulling my hair out. the find method simply won’t work for
me.

here’s my xml doc:

that’s it. now after parsing, i do

doc.find(’/top/first’)

and i get a result with size 0. i’ve tried everything. is there a
trick to using libxml that i’m missing?

thanks, for any help,
dino

Loading development environment (Rails 2.3.3)
require ‘xml’

require ‘xml’
=> []

doc = XML::Document.file(“public/my.xml”)
=> <?xml version="1.0" encoding="UTF-8"?>





nodes = doc.find(’/top/first’)
=> #LibXML::XML::XPath::Object:0x282c3bc

nodes.each do |node|
?> puts node

end




=> #LibXML::XML::XPath::Object:0x282c3bc