# File test/xpath_test.rb, line 372 def test_following d = Document.new "<a><b id='0'/><b/><b><c id='1'/><c id='2'/></b><b id='1'/></a>" start = XPath.first( d, "/a/b[@id='0']" ) assert_equal 'b', start.name c = XPath.first( start, "following::c" ) assert_equal '1', c.attributes['id'] end