# File test/xpath_test.rb, line 147
 def test_node_type
		doc = Document.new "<a><?foo bar?><!--comment-->text</a>"
		res = XPath::first(doc.root, "text()")
		assert_equal "text", res.to_s

		res = XPath::first(doc, "*")
		assert_equal "a", res.name

		assert_equal Instruction, XPath::first(doc.root, "processing-instruction()").type
		assert_equal Comment, XPath::first(doc.root, "comment()").type
	end