public CreateDBParameterGroupResult Unmarshall(XmlUnmarshallerContext context) { CreateDBParameterGroupResult result = new CreateDBParameterGroupResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DBParameterGroup", targetDepth)) { result.DBParameterGroup = DBParameterGroupUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(result); } } return(result); }
private static void UnmarshallResult(XmlUnmarshallerContext context, CreateDBParameterGroupResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DBParameterGroup", targetDepth)) { response.DBParameterGroup = DBParameterGroupUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } }
public static DBParameterGroupUnmarshaller GetInstance() { if (instance == null) { instance = new DBParameterGroupUnmarshaller(); } return(instance); }
public DescribeDBParameterGroupsResult Unmarshall(XmlUnmarshallerContext context) { DescribeDBParameterGroupsResult describeDBParameterGroupsResult = new DescribeDBParameterGroupsResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Marker", targetDepth)) { describeDBParameterGroupsResult.Marker = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DBParameterGroups/DBParameterGroup", targetDepth)) { describeDBParameterGroupsResult.DBParameterGroups.Add(DBParameterGroupUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(describeDBParameterGroupsResult); } } return(describeDBParameterGroupsResult); }