# File lib/libxml/attributes.rb, line 4
      def to_h
        inject({}) do |hash, attr|
          hash[attr.name] = attr.value
          hash
        end
      end