# File test/attributes.rb, line 13
 def test_each_attribute
		doc = Document.new '<a x="1" y="2"/>'
		doc.root.attributes.each_attribute {|attr|
			if attr.expanded_name == 'x'
				assert_equals '1', attr.value
			elsif attr.expanded_name == 'y'
				assert_equals '2', attr.value
			else
				assert_fail "No such attribute!!"
			end
		}
	end