public SettlementInformation(XmlNode xmlNode) { XmlNodeList standardSettlementStyleNodeList = xmlNode.SelectNodes("standardSettlementStyle"); if (standardSettlementStyleNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in standardSettlementStyleNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { standardSettlementStyleIDRef = item.Attributes["id"].Name; StandardSettlementStyleEnum ob = StandardSettlementStyleEnum(); IDManager.SetID(standardSettlementStyleIDRef, ob); } else if (item.Attributes.ToString() == "href") { standardSettlementStyleIDRef = item.Attributes["href"].Name; } else { standardSettlementStyle = new StandardSettlementStyleEnum(item); } } } XmlNodeList settlementInstructionNodeList = xmlNode.SelectNodes("settlementInstruction"); if (settlementInstructionNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in settlementInstructionNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { settlementInstructionIDRef = item.Attributes["id"].Name; SettlementInstruction ob = SettlementInstruction(); IDManager.SetID(settlementInstructionIDRef, ob); } else if (item.Attributes.ToString() == "href") { settlementInstructionIDRef = item.Attributes["href"].Name; } else { settlementInstruction = new SettlementInstruction(item); } } } }
public SettlementInformation(XmlNode xmlNode) { XmlNode standardSettlementStyleNode = xmlNode.SelectSingleNode("standardSettlementStyle"); if (standardSettlementStyleNode != null) { if (standardSettlementStyleNode.Attributes["href"] != null || standardSettlementStyleNode.Attributes["id"] != null) { if (standardSettlementStyleNode.Attributes["id"] != null) { standardSettlementStyleIDRef_ = standardSettlementStyleNode.Attributes["id"].Value; StandardSettlementStyleEnum ob = new StandardSettlementStyleEnum(standardSettlementStyleNode); IDManager.SetID(standardSettlementStyleIDRef_, ob); } else if (standardSettlementStyleNode.Attributes["href"] != null) { standardSettlementStyleIDRef_ = standardSettlementStyleNode.Attributes["href"].Value; } else { standardSettlementStyle_ = new StandardSettlementStyleEnum(standardSettlementStyleNode); } } else { standardSettlementStyle_ = new StandardSettlementStyleEnum(standardSettlementStyleNode); } } XmlNode settlementInstructionNode = xmlNode.SelectSingleNode("settlementInstruction"); if (settlementInstructionNode != null) { if (settlementInstructionNode.Attributes["href"] != null || settlementInstructionNode.Attributes["id"] != null) { if (settlementInstructionNode.Attributes["id"] != null) { settlementInstructionIDRef_ = settlementInstructionNode.Attributes["id"].Value; SettlementInstruction ob = new SettlementInstruction(settlementInstructionNode); IDManager.SetID(settlementInstructionIDRef_, ob); } else if (settlementInstructionNode.Attributes["href"] != null) { settlementInstructionIDRef_ = settlementInstructionNode.Attributes["href"].Value; } else { settlementInstruction_ = new SettlementInstruction(settlementInstructionNode); } } else { settlementInstruction_ = new SettlementInstruction(settlementInstructionNode); } } }
public SettlementInformation(XmlNode xmlNode) { XmlNode standardSettlementStyleNode = xmlNode.SelectSingleNode("standardSettlementStyle"); if (standardSettlementStyleNode != null) { if (standardSettlementStyleNode.Attributes["href"] != null || standardSettlementStyleNode.Attributes["id"] != null) { if (standardSettlementStyleNode.Attributes["id"] != null) { standardSettlementStyleIDRef_ = standardSettlementStyleNode.Attributes["id"].Value; StandardSettlementStyleEnum ob = new StandardSettlementStyleEnum(standardSettlementStyleNode); IDManager.SetID(standardSettlementStyleIDRef_, ob); } else if (standardSettlementStyleNode.Attributes["href"] != null) { standardSettlementStyleIDRef_ = standardSettlementStyleNode.Attributes["href"].Value; } else { standardSettlementStyle_ = new StandardSettlementStyleEnum(standardSettlementStyleNode); } } else { standardSettlementStyle_ = new StandardSettlementStyleEnum(standardSettlementStyleNode); } } XmlNode settlementInstructionNode = xmlNode.SelectSingleNode("settlementInstruction"); if (settlementInstructionNode != null) { if (settlementInstructionNode.Attributes["href"] != null || settlementInstructionNode.Attributes["id"] != null) { if (settlementInstructionNode.Attributes["id"] != null) { settlementInstructionIDRef_ = settlementInstructionNode.Attributes["id"].Value; SettlementInstruction ob = new SettlementInstruction(settlementInstructionNode); IDManager.SetID(settlementInstructionIDRef_, ob); } else if (settlementInstructionNode.Attributes["href"] != null) { settlementInstructionIDRef_ = settlementInstructionNode.Attributes["href"].Value; } else { settlementInstruction_ = new SettlementInstruction(settlementInstructionNode); } } else { settlementInstruction_ = new SettlementInstruction(settlementInstructionNode); } } }