[libxml-devel] .//xpath can't find the current node

Phlip phlip2005 at gmail.com
Thu Feb 21 21:01:14 EST 2008


Phlip wrote:

>        node = assert_libxml('<foo><bar>content</bar></foo>')
>        assert{ node.instance_of? XML::Node }
>        assert{ node.find_first('/foo') }
>      #  assert{ node.find_first('foo') }

       assert{ node.find_first('descendant-or-self::foo') }

D'oh!!

(Of course I already knew about the axis trick...;)

-- 
   Phlip



More information about the libxml-devel mailing list