public RateCouponCalculation(XmlNode xmlNode) : base(xmlNode) { XmlNode typeNode = xmlNode.SelectSingleNode("type"); if (typeNode != null) { if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) { if (typeNode.Attributes["id"] != null) { typeIDRef_ = typeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(typeNode); IDManager.SetID(typeIDRef_, ob); } else if (typeNode.Attributes["href"] != null) { typeIDRef_ = typeNode.Attributes["href"].Value; } else { type_ = new XsdTypeToken(typeNode); } } else { type_ = new XsdTypeToken(typeNode); } } XmlNode fixedRateCouponCalculationNode = xmlNode.SelectSingleNode("fixedRateCouponCalculation"); if (fixedRateCouponCalculationNode != null) { if (fixedRateCouponCalculationNode.Attributes["href"] != null || fixedRateCouponCalculationNode.Attributes["id"] != null) { if (fixedRateCouponCalculationNode.Attributes["id"] != null) { fixedRateCouponCalculationIDRef_ = fixedRateCouponCalculationNode.Attributes["id"].Value; FixedRateCouponCalculation ob = new FixedRateCouponCalculation(fixedRateCouponCalculationNode); IDManager.SetID(fixedRateCouponCalculationIDRef_, ob); } else if (fixedRateCouponCalculationNode.Attributes["href"] != null) { fixedRateCouponCalculationIDRef_ = fixedRateCouponCalculationNode.Attributes["href"].Value; } else { fixedRateCouponCalculation_ = new FixedRateCouponCalculation(fixedRateCouponCalculationNode); } } else { fixedRateCouponCalculation_ = new FixedRateCouponCalculation(fixedRateCouponCalculationNode); } } }