= private = protected
attribute( name, namespace=nil )
Attributes #
# File lib/rexml/element.rb, line 553 def attribute( name, namespace=nil ) prefix = nil prefix = namespaces.index(namespace) if namespace prefix = nil if prefix == 'xmlns' attributes.get_attribute( "#{prefix ? prefix + ':' : ''}#{name}" ) end