# File rexml/element.rb, line 249 def add_element element=nil, attrs=nil el = @elements.add element attrs.each_pair do |key, value| el.attributes[key]=value end if attrs.kind_of? Hash el end