# File test/contrib_test.rb, line 216 def test_xpath_03_TobiasReif doc = Document.new XML_STRING_02.dup desired_result_string = "<entry type='Book'> <language>english</language> <publisher>Addison-Wesley</publisher> <title>Programming Ruby. The Pragmatic Programmer's Guide</title> <type>Book</type> <year>2000</year> </entry>" desired_result_tree = Document.new desired_result_string xpath = "/biblio/entry[not(author)]" result = XPath.first(doc, xpath) assert_equal desired_result_string, result.to_s end