# File lib/nokogiri/xml/reader.rb, line 13 def attributes Hash[*(attribute_nodes.map { |node| [node.name, node.to_s] }.flatten)].merge(namespaces || {}) end