    # File lib/fog/aws/parsers/elb/describe_load_balancers.rb, line 52
              def end_element(name)
                case name
                when 'member'
                  if @in_policy_names
                    @listener_description['PolicyNames'] << value
                  elsif @in_availability_zones
                    @load_balancer['AvailabilityZones'] << value
                  elsif @in_security_groups
                    @load_balancer['SecurityGroups'] << value
                  elsif @in_subnets
                    @load_balancer['Subnets'] << value
                  elsif @in_listeners
                    @load_balancer['ListenerDescriptions'] << @listener_description
                    reset_listener_description
                  elsif @in_app_cookies
                    @load_balancer['Policies']['AppCookieStickinessPolicies'] << @policy
                    reset_policy
                  elsif @in_lb_cookies
                    @load_balancer['Policies']['LBCookieStickinessPolicies'] << @policy
                    reset_policy
                  elsif !@in_instances && !@in_policies
                    @results['LoadBalancerDescriptions'] << @load_balancer
                    reset_load_balancer
                  end

                when 'CanonicalHostedZoneName', 'CanonicalHostedZoneNameID', 'LoadBalancerName', 'DNSName', 'Scheme'
                  @load_balancer[name] = value
                when 'CreatedTime'
                  @load_balancer[name] = Time.parse(value)

                when 'ListenerDescriptions'
                  @in_listeners = false
                when 'PolicyNames'
                  @in_policy_names = false
                when 'Protocol', 'SSLCertificateId', 'InstanceProtocol'
                  @listener_description['Listener'][name] = value
                when 'LoadBalancerPort', 'InstancePort'
                  @listener_description['Listener'][name] = value.to_i

                when 'Instances'
                  @in_instances = false
                when 'InstanceId'
                  @load_balancer['Instances'] << value
                when 'VPCId'
                  @load_balancer[name] = value

                when 'AvailabilityZones'
                  @in_availability_zones = false
                when 'SecurityGroups'
                  @in_security_groups = false
                when 'Subnets'
                  @in_subnets = false

                when 'Policies'
                  @in_policies = false
                when 'AppCookieStickinessPolicies'
                  @in_app_cookies = false
                when 'LBCookieStickinessPolicies'
                  @in_lb_cookies = false

                when 'OwnerAlias', 'GroupName'
                  @load_balancer['SourceSecurityGroup'][name] = value

                when 'Interval', 'HealthyThreshold', 'Timeout', 'UnhealthyThreshold'
                  @load_balancer['HealthCheck'][name] = value.to_i
                when 'Target'
                  @load_balancer['HealthCheck'][name] = value

                when 'PolicyName', 'CookieName'
                  @policy[name] = value
                when 'CookieExpirationPeriod'
                  @policy[name] = value.to_i

                when 'RequestId'
                  @response['ResponseMetadata'][name] = value

                when 'NextMarker'
                  @results['NextMarker'] = value
                when 'DescribeLoadBalancersResponse'
                  @response['DescribeLoadBalancersResult'] = @results
                end
              end