method

get_attributes

get_attributes(element)
private

Converts the attributes array of an XML element into a hash. Returns an empty Hash if node has no attributes.

element

XML element to extract attributes from.