method

include?

ruby latest stable - Class: REXML::AttlistDecl
include?(key)
public

Whether an attlist declaration includes the given attribute definition

if attlist_decl.include? "xmlns:foobar"