# File lib/aws/core/xml/frame.rb, line 105
        def close
          # some xml elements should be indexed at the root level
          # The :index rule determines the name of this index
          # and what keys the data should be indexed as (one element
          # can be indexed under multiple keys).  The index value
          # is always the element itself.
          if index = @rules[:index]
            index_keys_for(index) do |key|
              root_frame.add_to_index(index[:name], key, data)
            end
          end
        end