public SwapStreamPara(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode notionalNode = xmlNode.SelectSingleNode("notional");
     
     if (notionalNode != null)
     {
         if (notionalNode.Attributes["href"] != null || notionalNode.Attributes["id"] != null) 
         {
             if (notionalNode.Attributes["id"] != null) 
             {
                 notionalIDRef_ = notionalNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(notionalNode);
                 IDManager.SetID(notionalIDRef_, ob);
             }
             else if (notionalNode.Attributes["href"] != null)
             {
                 notionalIDRef_ = notionalNode.Attributes["href"].Value;
             }
             else
             {
                 notional_ = new XsdTypeDouble(notionalNode);
             }
         }
         else
         {
             notional_ = new XsdTypeDouble(notionalNode);
         }
     }
     
 
     XmlNode discountCurve_paraNode = xmlNode.SelectSingleNode("discountCurve_para");
     
     if (discountCurve_paraNode != null)
     {
         if (discountCurve_paraNode.Attributes["href"] != null || discountCurve_paraNode.Attributes["id"] != null) 
         {
             if (discountCurve_paraNode.Attributes["id"] != null) 
             {
                 discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["id"].Value;
                 DiscountCurve_para ob = new DiscountCurve_para(discountCurve_paraNode);
                 IDManager.SetID(discountCurve_paraIDRef_, ob);
             }
             else if (discountCurve_paraNode.Attributes["href"] != null)
             {
                 discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["href"].Value;
             }
             else
             {
                 discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
             }
         }
         else
         {
             discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
         }
     }
     
 
 }
        public SwapStreamPara(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode notionalNode = xmlNode.SelectSingleNode("notional");

            if (notionalNode != null)
            {
                if (notionalNode.Attributes["href"] != null || notionalNode.Attributes["id"] != null)
                {
                    if (notionalNode.Attributes["id"] != null)
                    {
                        notionalIDRef_ = notionalNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(notionalNode);
                        IDManager.SetID(notionalIDRef_, ob);
                    }
                    else if (notionalNode.Attributes["href"] != null)
                    {
                        notionalIDRef_ = notionalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        notional_ = new XsdTypeDouble(notionalNode);
                    }
                }
                else
                {
                    notional_ = new XsdTypeDouble(notionalNode);
                }
            }


            XmlNode discountCurve_paraNode = xmlNode.SelectSingleNode("discountCurve_para");

            if (discountCurve_paraNode != null)
            {
                if (discountCurve_paraNode.Attributes["href"] != null || discountCurve_paraNode.Attributes["id"] != null)
                {
                    if (discountCurve_paraNode.Attributes["id"] != null)
                    {
                        discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["id"].Value;
                        DiscountCurve_para ob = new DiscountCurve_para(discountCurve_paraNode);
                        IDManager.SetID(discountCurve_paraIDRef_, ob);
                    }
                    else if (discountCurve_paraNode.Attributes["href"] != null)
                    {
                        discountCurve_paraIDRef_ = discountCurve_paraNode.Attributes["href"].Value;
                    }
                    else
                    {
                        discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
                    }
                }
                else
                {
                    discountCurve_para_ = new DiscountCurve_para(discountCurve_paraNode);
                }
            }
        }