Libxml Node#find gives 'wrong argument type nil (expected Da

Sigh,

p xpath #=> “//*[@id=‘table_name’]”
p node #=>


matches = node.find( xpath )
xparse.rb:47:in `find’: wrong argument type nil (expected Data)
(TypeError)

It occurs in a loop on a copied node to be exact. Any ideas?

Thanks,
T.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs