method
each_attribute
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
each_attribute()
public
Iterates over the attributes of an Element. Yields actual Attribute nodes, not String values.
doc = Document.new ‘<a x=“1” y=“2”/>’ doc.root.attributes.each_attribute {|attr|
p attr.expanded_name+" => "+attr.value
}