# File lib/rexml/element.rb, line 972 def [](name) attr = get_attribute(name) return attr.value unless attr.nil? return nil end