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

**URL:** <https://www.ruby-forum.com/t/libxml-node-find-gives-wrong-argument-type-nil-expected-da/97583>\
**Category:** Ruby\
**Created:** [July 8, 2006, 5:49am UTC](https://www.ruby-forum.com/t/libxml-node-find-gives-wrong-argument-type-nil-expected-da/97583 "2006-07-08T05:49:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 8, 2006, 5:49am UTC](https://www.ruby-forum.com/t/libxml-node-find-gives-wrong-argument-type-nil-expected-da/97583/1 "2006-07-08T05:49:38Z")

</div>

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.
