public Excel_structuredBond(XmlNode xmlNode) : base(xmlNode) { XmlNode excel_issueInfoNode = xmlNode.SelectSingleNode("excel_issueInfo"); if (excel_issueInfoNode != null) { if (excel_issueInfoNode.Attributes["href"] != null || excel_issueInfoNode.Attributes["id"] != null) { if (excel_issueInfoNode.Attributes["id"] != null) { excel_issueInfoIDRef_ = excel_issueInfoNode.Attributes["id"].Value; Excel_issueInfo ob = new Excel_issueInfo(excel_issueInfoNode); IDManager.SetID(excel_issueInfoIDRef_, ob); } else if (excel_issueInfoNode.Attributes["href"] != null) { excel_issueInfoIDRef_ = excel_issueInfoNode.Attributes["href"].Value; } else { excel_issueInfo_ = new Excel_issueInfo(excel_issueInfoNode); } } else { excel_issueInfo_ = new Excel_issueInfo(excel_issueInfoNode); } } XmlNode excel_underlyingCalcInfoNode = xmlNode.SelectSingleNode("excel_underlyingCalcInfo"); if (excel_underlyingCalcInfoNode != null) { if (excel_underlyingCalcInfoNode.Attributes["href"] != null || excel_underlyingCalcInfoNode.Attributes["id"] != null) { if (excel_underlyingCalcInfoNode.Attributes["id"] != null) { excel_underlyingCalcInfoIDRef_ = excel_underlyingCalcInfoNode.Attributes["id"].Value; Excel_underlyingCalcInfo ob = new Excel_underlyingCalcInfo(excel_underlyingCalcInfoNode); IDManager.SetID(excel_underlyingCalcInfoIDRef_, ob); } else if (excel_underlyingCalcInfoNode.Attributes["href"] != null) { excel_underlyingCalcInfoIDRef_ = excel_underlyingCalcInfoNode.Attributes["href"].Value; } else { excel_underlyingCalcInfo_ = new Excel_underlyingCalcInfo(excel_underlyingCalcInfoNode); } } else { excel_underlyingCalcInfo_ = new Excel_underlyingCalcInfo(excel_underlyingCalcInfoNode); } } XmlNode excel_couponScheduleListNode = xmlNode.SelectSingleNode("excel_couponScheduleList"); if (excel_couponScheduleListNode != null) { if (excel_couponScheduleListNode.Attributes["href"] != null || excel_couponScheduleListNode.Attributes["id"] != null) { if (excel_couponScheduleListNode.Attributes["id"] != null) { excel_couponScheduleListIDRef_ = excel_couponScheduleListNode.Attributes["id"].Value; Excel_couponScheduleList ob = new Excel_couponScheduleList(excel_couponScheduleListNode); IDManager.SetID(excel_couponScheduleListIDRef_, ob); } else if (excel_couponScheduleListNode.Attributes["href"] != null) { excel_couponScheduleListIDRef_ = excel_couponScheduleListNode.Attributes["href"].Value; } else { excel_couponScheduleList_ = new Excel_couponScheduleList(excel_couponScheduleListNode); } } else { excel_couponScheduleList_ = new Excel_couponScheduleList(excel_couponScheduleListNode); } } XmlNode excel_structuredBond_subtypeNode = xmlNode.SelectSingleNode("excel_structuredBond_subtype"); if (excel_structuredBond_subtypeNode != null) { if (excel_structuredBond_subtypeNode.Attributes["href"] != null || excel_structuredBond_subtypeNode.Attributes["id"] != null) { if (excel_structuredBond_subtypeNode.Attributes["id"] != null) { excel_structuredBond_subtypeIDRef_ = excel_structuredBond_subtypeNode.Attributes["id"].Value; Excel_structuredBond_subtype ob = new Excel_structuredBond_subtype(excel_structuredBond_subtypeNode); IDManager.SetID(excel_structuredBond_subtypeIDRef_, ob); } else if (excel_structuredBond_subtypeNode.Attributes["href"] != null) { excel_structuredBond_subtypeIDRef_ = excel_structuredBond_subtypeNode.Attributes["href"].Value; } else { excel_structuredBond_subtype_ = new Excel_structuredBond_subtype(excel_structuredBond_subtypeNode); } } else { excel_structuredBond_subtype_ = new Excel_structuredBond_subtype(excel_structuredBond_subtypeNode); } } }
public Excel_structuredBond(XmlNode xmlNode) : base(xmlNode) { XmlNode excel_issueInfoNode = xmlNode.SelectSingleNode("excel_issueInfo"); if (excel_issueInfoNode != null) { if (excel_issueInfoNode.Attributes["href"] != null || excel_issueInfoNode.Attributes["id"] != null) { if (excel_issueInfoNode.Attributes["id"] != null) { excel_issueInfoIDRef_ = excel_issueInfoNode.Attributes["id"].Value; Excel_issueInfo ob = new Excel_issueInfo(excel_issueInfoNode); IDManager.SetID(excel_issueInfoIDRef_, ob); } else if (excel_issueInfoNode.Attributes["href"] != null) { excel_issueInfoIDRef_ = excel_issueInfoNode.Attributes["href"].Value; } else { excel_issueInfo_ = new Excel_issueInfo(excel_issueInfoNode); } } else { excel_issueInfo_ = new Excel_issueInfo(excel_issueInfoNode); } } XmlNode excel_couponScheduleListNode = xmlNode.SelectSingleNode("excel_couponScheduleList"); if (excel_couponScheduleListNode != null) { if (excel_couponScheduleListNode.Attributes["href"] != null || excel_couponScheduleListNode.Attributes["id"] != null) { if (excel_couponScheduleListNode.Attributes["id"] != null) { excel_couponScheduleListIDRef_ = excel_couponScheduleListNode.Attributes["id"].Value; Excel_couponScheduleList ob = new Excel_couponScheduleList(excel_couponScheduleListNode); IDManager.SetID(excel_couponScheduleListIDRef_, ob); } else if (excel_couponScheduleListNode.Attributes["href"] != null) { excel_couponScheduleListIDRef_ = excel_couponScheduleListNode.Attributes["href"].Value; } else { excel_couponScheduleList_ = new Excel_couponScheduleList(excel_couponScheduleListNode); } } else { excel_couponScheduleList_ = new Excel_couponScheduleList(excel_couponScheduleListNode); } } XmlNode excel_structuredBond_subtypeNode = xmlNode.SelectSingleNode("excel_structuredBond_subtype"); if (excel_structuredBond_subtypeNode != null) { if (excel_structuredBond_subtypeNode.Attributes["href"] != null || excel_structuredBond_subtypeNode.Attributes["id"] != null) { if (excel_structuredBond_subtypeNode.Attributes["id"] != null) { excel_structuredBond_subtypeIDRef_ = excel_structuredBond_subtypeNode.Attributes["id"].Value; Excel_structuredBond_subtype ob = new Excel_structuredBond_subtype(excel_structuredBond_subtypeNode); IDManager.SetID(excel_structuredBond_subtypeIDRef_, ob); } else if (excel_structuredBond_subtypeNode.Attributes["href"] != null) { excel_structuredBond_subtypeIDRef_ = excel_structuredBond_subtypeNode.Attributes["href"].Value; } else { excel_structuredBond_subtype_ = new Excel_structuredBond_subtype(excel_structuredBond_subtypeNode); } } else { excel_structuredBond_subtype_ = new Excel_structuredBond_subtype(excel_structuredBond_subtypeNode); } } }