class REXML::Attributes
def delete_all( name )
attrs.delete_all('att') # => [att='<']
attrs = ele.attributes
ele = d.root.elements['//ele'] # =>
d = REXML::Document.new(xml_string)
EOT
xml_string = <<-EOT
returns an array of the removed attributes:
Removes all attributes matching the given +name+;
delete_all(name) -> array_of_removed_attributes
:call-seq:
def delete_all( name ) rv = [] each_attribute { |attribute| rv << attribute if attribute.expanded_name == name } rv.each{ |attr| attr.remove } return rv end