libxml Node#find gives 'wrong argument type nil (expected Data)'

Discussion in 'Ruby' started by transfire@gmail.com, Jul 8, 2006.

  1. Guest

    Sigh,

    p xpath #=> "//*[@id='table_name']"
    p node #=> <div><b id="table_name"/> <b id="table_address"/></div>
    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.
    , Jul 8, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,376
  2. Ian Gregory
    Replies:
    1
    Views:
    493
  3. Olav
    Replies:
    3
    Views:
    4,198
  4. Tim Kynerd
    Replies:
    12
    Views:
    264
    Yukihiro Matsumoto
    Nov 28, 2003
  5. Christoffer Sawicki
    Replies:
    5
    Views:
    236
    Christoffer Sawicki
    Sep 2, 2006
Loading...

Share This Page