public MessageBody(XmlNode xmlNode) : base(xmlNode) { XmlNode msg_typeNode = xmlNode.SelectSingleNode("msg_type"); if (msg_typeNode != null) { if (msg_typeNode.Attributes["href"] != null || msg_typeNode.Attributes["id"] != null) { if (msg_typeNode.Attributes["id"] != null) { msg_typeIDRef_ = msg_typeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(msg_typeNode); IDManager.SetID(msg_typeIDRef_, ob); } else if (msg_typeNode.Attributes["href"] != null) { msg_typeIDRef_ = msg_typeNode.Attributes["href"].Value; } else { msg_type_ = new XsdTypeToken(msg_typeNode); } } else { msg_type_ = new XsdTypeToken(msg_typeNode); } } XmlNode maturityNotificationNode = xmlNode.SelectSingleNode("maturityNotification"); if (maturityNotificationNode != null) { if (maturityNotificationNode.Attributes["href"] != null || maturityNotificationNode.Attributes["id"] != null) { if (maturityNotificationNode.Attributes["id"] != null) { maturityNotificationIDRef_ = maturityNotificationNode.Attributes["id"].Value; MaturityNotification ob = new MaturityNotification(maturityNotificationNode); IDManager.SetID(maturityNotificationIDRef_, ob); } else if (maturityNotificationNode.Attributes["href"] != null) { maturityNotificationIDRef_ = maturityNotificationNode.Attributes["href"].Value; } else { maturityNotification_ = new MaturityNotification(maturityNotificationNode); } } else { maturityNotification_ = new MaturityNotification(maturityNotificationNode); } } XmlNode gridCalculationNode = xmlNode.SelectSingleNode("gridCalculation"); if (gridCalculationNode != null) { if (gridCalculationNode.Attributes["href"] != null || gridCalculationNode.Attributes["id"] != null) { if (gridCalculationNode.Attributes["id"] != null) { gridCalculationIDRef_ = gridCalculationNode.Attributes["id"].Value; GridCalculation ob = new GridCalculation(gridCalculationNode); IDManager.SetID(gridCalculationIDRef_, ob); } else if (gridCalculationNode.Attributes["href"] != null) { gridCalculationIDRef_ = gridCalculationNode.Attributes["href"].Value; } else { gridCalculation_ = new GridCalculation(gridCalculationNode); } } else { gridCalculation_ = new GridCalculation(gridCalculationNode); } } XmlNode clearQueueNode = xmlNode.SelectSingleNode("clearQueue"); if (clearQueueNode != null) { if (clearQueueNode.Attributes["href"] != null || clearQueueNode.Attributes["id"] != null) { if (clearQueueNode.Attributes["id"] != null) { clearQueueIDRef_ = clearQueueNode.Attributes["id"].Value; ClearQueue ob = new ClearQueue(clearQueueNode); IDManager.SetID(clearQueueIDRef_, ob); } else if (clearQueueNode.Attributes["href"] != null) { clearQueueIDRef_ = clearQueueNode.Attributes["href"].Value; } else { clearQueue_ = new ClearQueue(clearQueueNode); } } else { clearQueue_ = new ClearQueue(clearQueueNode); } } XmlNode gridCalculationStartNode = xmlNode.SelectSingleNode("gridCalculationStart"); if (gridCalculationStartNode != null) { if (gridCalculationStartNode.Attributes["href"] != null || gridCalculationStartNode.Attributes["id"] != null) { if (gridCalculationStartNode.Attributes["id"] != null) { gridCalculationStartIDRef_ = gridCalculationStartNode.Attributes["id"].Value; GridCalculationStart ob = new GridCalculationStart(gridCalculationStartNode); IDManager.SetID(gridCalculationStartIDRef_, ob); } else if (gridCalculationStartNode.Attributes["href"] != null) { gridCalculationStartIDRef_ = gridCalculationStartNode.Attributes["href"].Value; } else { gridCalculationStart_ = new GridCalculationStart(gridCalculationStartNode); } } else { gridCalculationStart_ = new GridCalculationStart(gridCalculationStartNode); } } XmlNode calculationServerInfoNode = xmlNode.SelectSingleNode("calculationServerInfo"); if (calculationServerInfoNode != null) { if (calculationServerInfoNode.Attributes["href"] != null || calculationServerInfoNode.Attributes["id"] != null) { if (calculationServerInfoNode.Attributes["id"] != null) { calculationServerInfoIDRef_ = calculationServerInfoNode.Attributes["id"].Value; CalculationServerInfo ob = new CalculationServerInfo(calculationServerInfoNode); IDManager.SetID(calculationServerInfoIDRef_, ob); } else if (calculationServerInfoNode.Attributes["href"] != null) { calculationServerInfoIDRef_ = calculationServerInfoNode.Attributes["href"].Value; } else { calculationServerInfo_ = new CalculationServerInfo(calculationServerInfoNode); } } else { calculationServerInfo_ = new CalculationServerInfo(calculationServerInfoNode); } } }