class REXML::Attributes

def each


["att", "<"]
["bar:att", "2"]
["foo:att", "1"]

Output:

end
p [expanded_name, value]
ele.attributes.each do |expanded_name, value|
ele = d.root.elements['//ele'] # =>
d = REXML::Document.new(xml_string)
EOT



xml_string = <<-EOT

Calls the given block with each expanded-name/value pair:

each {|expanded_name, value| ... }
:call-seq:
def each
  return to_enum(__method__) unless block_given?
  each_attribute do |attr|
    yield [attr.expanded_name, attr.value]
  end
end