public static ReservedInstancesListingUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new ReservedInstancesListingUnmarshaller();
            }

            return(instance);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CancelReservedInstancesListingResponse response = new CancelReservedInstancesListingResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("reservedInstancesListingsSet/item", targetDepth))
                    {
                        response.ReservedInstancesListings.Add(ReservedInstancesListingUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }