public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CreateDhcpOptionsResponse response = new CreateDhcpOptionsResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("dhcpOptions", targetDepth))
                    {
                        var unmarshaller = DhcpOptionsUnmarshaller.Instance;
                        response.DhcpOptions = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
Beispiel #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CreateDhcpOptionsResponse response = new CreateDhcpOptionsResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("dhcpOptions", targetDepth))
                    {
                        response.DhcpOptions = DhcpOptionsUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }