public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeNetworkInterfacesResponse response = new DescribeNetworkInterfacesResponse(); 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("networkInterfaceSet/item", targetDepth)) { var unmarshaller = NetworkInterfaceUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.NetworkInterfaces.Add(item); continue; } } } return response; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeNetworkInterfacesResponse response = new DescribeNetworkInterfacesResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("networkInterfaceSet/item", targetDepth)) { response.NetworkInterfaces.Add(NetworkInterfaceUnmarshaller.GetInstance().Unmarshall(context)); continue; } } } return response; }