# File lib/fog/aws/parsers/compute/cancel_spot_instance_requests.rb, line 13
          def end_element(name)
            case name
            when 'item'
              @response['spotInstanceRequestSet'] << @spot_instance_request
              @spot_instance_request = {}
            when 'requestId'
              @response[name] = value
            when 'spotInstanceRequestId', 'state'
              @spot_instance_request[name] = value
            end
          end