/// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeNetworkInterfaceAttributeResponse response = new DescribeNetworkInterfaceAttributeResponse();

            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("attachment", targetDepth))
                    {
                        var unmarshaller = NetworkInterfaceAttachmentUnmarshaller.Instance;
                        response.Attachment = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("description/value", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Description = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("groupSet/item", targetDepth))
                    {
                        var unmarshaller = GroupIdentifierUnmarshaller.Instance;
                        var item = unmarshaller.Unmarshall(context);
                        response.Groups.Add(item);
                        continue;
                    }
                    if (context.TestExpression("networkInterfaceId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.NetworkInterfaceId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("sourceDestCheck/value", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.SourceDestCheck = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
            }

            return response;
        }
 public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) 
 {   
     DescribeNetworkInterfaceAttributeResponse response = new DescribeNetworkInterfaceAttributeResponse();
     
     int targetDepth = 2;
     while (context.Read())
     {
         if (context.IsStartElement || context.IsAttribute)
         {
             
             if (context.TestExpression("networkInterfaceId", targetDepth))
             {
                 response.NetworkInterfaceId = StringUnmarshaller.GetInstance().Unmarshall(context);
                     
                 continue;
             }
             if (context.TestExpression("description/value", targetDepth))
             {
                 response.Description = StringUnmarshaller.GetInstance().Unmarshall(context);
                     
                 continue;
             }
             if (context.TestExpression("sourceDestCheck/value", targetDepth))
             {
                 response.SourceDestCheck = BoolUnmarshaller.GetInstance().Unmarshall(context);
                     
                 continue;
             }
             if (context.TestExpression("groupSet/item", targetDepth))
             {
                 response.Groups.Add(GroupIdentifierUnmarshaller.GetInstance().Unmarshall(context));
                     
                 continue;
             }
             if (context.TestExpression("attachment", targetDepth))
             {
                 response.Attachment = NetworkInterfaceAttachmentUnmarshaller.GetInstance().Unmarshall(context);
                     
                 continue;
             }
         }
     }
          
                 
     return response;
 }