public Excel_cds(XmlNode xmlNode) : base(xmlNode) { XmlNode excel_swapLegNode = xmlNode.SelectSingleNode("excel_swapLeg"); if (excel_swapLegNode != null) { if (excel_swapLegNode.Attributes["href"] != null || excel_swapLegNode.Attributes["id"] != null) { if (excel_swapLegNode.Attributes["id"] != null) { excel_swapLegIDRef_ = excel_swapLegNode.Attributes["id"].Value; Excel_swapLeg ob = new Excel_swapLeg(excel_swapLegNode); IDManager.SetID(excel_swapLegIDRef_, ob); } else if (excel_swapLegNode.Attributes["href"] != null) { excel_swapLegIDRef_ = excel_swapLegNode.Attributes["href"].Value; } else { excel_swapLeg_ = new Excel_swapLeg(excel_swapLegNode); } } else { excel_swapLeg_ = new Excel_swapLeg(excel_swapLegNode); } } XmlNode excel_creditEventSwapLegNode = xmlNode.SelectSingleNode("excel_creditEventSwapLeg"); if (excel_creditEventSwapLegNode != null) { if (excel_creditEventSwapLegNode.Attributes["href"] != null || excel_creditEventSwapLegNode.Attributes["id"] != null) { if (excel_creditEventSwapLegNode.Attributes["id"] != null) { excel_creditEventSwapLegIDRef_ = excel_creditEventSwapLegNode.Attributes["id"].Value; Excel_creditEventSwapLeg ob = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode); IDManager.SetID(excel_creditEventSwapLegIDRef_, ob); } else if (excel_creditEventSwapLegNode.Attributes["href"] != null) { excel_creditEventSwapLegIDRef_ = excel_creditEventSwapLegNode.Attributes["href"].Value; } else { excel_creditEventSwapLeg_ = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode); } } else { excel_creditEventSwapLeg_ = new Excel_creditEventSwapLeg(excel_creditEventSwapLegNode); } } }