public DiscountCurve(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode yieldTermstructureNode = xmlNode.SelectSingleNode("yieldTermstructure");

            if (yieldTermstructureNode != null)
            {
                if (yieldTermstructureNode.Attributes["href"] != null || yieldTermstructureNode.Attributes["id"] != null)
                {
                    if (yieldTermstructureNode.Attributes["id"] != null)
                    {
                        yieldTermstructureIDRef_ = yieldTermstructureNode.Attributes["id"].Value;
                        YieldTermstructure ob = new YieldTermstructure(yieldTermstructureNode);
                        IDManager.SetID(yieldTermstructureIDRef_, ob);
                    }
                    else if (yieldTermstructureNode.Attributes["href"] != null)
                    {
                        yieldTermstructureIDRef_ = yieldTermstructureNode.Attributes["href"].Value;
                    }
                    else
                    {
                        yieldTermstructure_ = new YieldTermstructure(yieldTermstructureNode);
                    }
                }
                else
                {
                    yieldTermstructure_ = new YieldTermstructure(yieldTermstructureNode);
                }
            }
        }
 public DiscountCurve(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode yieldTermstructureNode = xmlNode.SelectSingleNode("yieldTermstructure");
     
     if (yieldTermstructureNode != null)
     {
         if (yieldTermstructureNode.Attributes["href"] != null || yieldTermstructureNode.Attributes["id"] != null) 
         {
             if (yieldTermstructureNode.Attributes["id"] != null) 
             {
                 yieldTermstructureIDRef_ = yieldTermstructureNode.Attributes["id"].Value;
                 YieldTermstructure ob = new YieldTermstructure(yieldTermstructureNode);
                 IDManager.SetID(yieldTermstructureIDRef_, ob);
             }
             else if (yieldTermstructureNode.Attributes["href"] != null)
             {
                 yieldTermstructureIDRef_ = yieldTermstructureNode.Attributes["href"].Value;
             }
             else
             {
                 yieldTermstructure_ = new YieldTermstructure(yieldTermstructureNode);
             }
         }
         else
         {
             yieldTermstructure_ = new YieldTermstructure(yieldTermstructureNode);
         }
     }
     
 
 }