# File src/rexml/element.rb, line 502 def attribute( name, namespace=nil ) prefix = '' if namespace prefix = attributes.prefixes.each { |prefix| return "#{prefix}:" if namespace( prefix ) == namespace } || '' end attributes.get_attribute( "#{prefix}#{name}" ) end