public CompoundingRate(XmlNode xmlNode)
        {
            XmlNodeList interestLegRateNodeList = xmlNode.SelectNodes("interestLegRate");

            if (interestLegRateNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in interestLegRateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        interestLegRateIDRef = item.Attributes["id"].Name;
                        FloatingRateCalculationReference ob = FloatingRateCalculationReference();
                        IDManager.SetID(interestLegRateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        interestLegRateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        interestLegRate = new FloatingRateCalculationReference(item);
                    }
                }
            }


            XmlNodeList specificRateNodeList = xmlNode.SelectNodes("specificRate");

            if (specificRateNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in specificRateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        specificRateIDRef = item.Attributes["id"].Name;
                        InterestAccrualsMethod ob = InterestAccrualsMethod();
                        IDManager.SetID(specificRateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        specificRateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        specificRate = new InterestAccrualsMethod(item);
                    }
                }
            }
        }
 public CompoundingRate(XmlNode xmlNode)
 {
     XmlNode interestLegRateNode = xmlNode.SelectSingleNode("interestLegRate");
     
     if (interestLegRateNode != null)
     {
         if (interestLegRateNode.Attributes["href"] != null || interestLegRateNode.Attributes["id"] != null) 
         {
             if (interestLegRateNode.Attributes["id"] != null) 
             {
                 interestLegRateIDRef_ = interestLegRateNode.Attributes["id"].Value;
                 FloatingRateCalculationReference ob = new FloatingRateCalculationReference(interestLegRateNode);
                 IDManager.SetID(interestLegRateIDRef_, ob);
             }
             else if (interestLegRateNode.Attributes["href"] != null)
             {
                 interestLegRateIDRef_ = interestLegRateNode.Attributes["href"].Value;
             }
             else
             {
                 interestLegRate_ = new FloatingRateCalculationReference(interestLegRateNode);
             }
         }
         else
         {
             interestLegRate_ = new FloatingRateCalculationReference(interestLegRateNode);
         }
     }
     
 
     XmlNode specificRateNode = xmlNode.SelectSingleNode("specificRate");
     
     if (specificRateNode != null)
     {
         if (specificRateNode.Attributes["href"] != null || specificRateNode.Attributes["id"] != null) 
         {
             if (specificRateNode.Attributes["id"] != null) 
             {
                 specificRateIDRef_ = specificRateNode.Attributes["id"].Value;
                 InterestAccrualsMethod ob = new InterestAccrualsMethod(specificRateNode);
                 IDManager.SetID(specificRateIDRef_, ob);
             }
             else if (specificRateNode.Attributes["href"] != null)
             {
                 specificRateIDRef_ = specificRateNode.Attributes["href"].Value;
             }
             else
             {
                 specificRate_ = new InterestAccrualsMethod(specificRateNode);
             }
         }
         else
         {
             specificRate_ = new InterestAccrualsMethod(specificRateNode);
         }
     }
     
 
 }
 public CompoundingRate(XmlNode xmlNode)
 {
     XmlNodeList interestLegRateNodeList = xmlNode.SelectNodes("interestLegRate");
     if (interestLegRateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in interestLegRateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 interestLegRateIDRef = item.Attributes["id"].Name;
                 FloatingRateCalculationReference ob = FloatingRateCalculationReference();
                 IDManager.SetID(interestLegRateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 interestLegRateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 interestLegRate = new FloatingRateCalculationReference(item);
             }
         }
     }
     
 
     XmlNodeList specificRateNodeList = xmlNode.SelectNodes("specificRate");
     if (specificRateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in specificRateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 specificRateIDRef = item.Attributes["id"].Name;
                 InterestAccrualsMethod ob = InterestAccrualsMethod();
                 IDManager.SetID(specificRateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 specificRateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 specificRate = new InterestAccrualsMethod(item);
             }
         }
     }
     
 
 }
        public CompoundingRate(XmlNode xmlNode)
        {
            XmlNode interestLegRateNode = xmlNode.SelectSingleNode("interestLegRate");

            if (interestLegRateNode != null)
            {
                if (interestLegRateNode.Attributes["href"] != null || interestLegRateNode.Attributes["id"] != null)
                {
                    if (interestLegRateNode.Attributes["id"] != null)
                    {
                        interestLegRateIDRef_ = interestLegRateNode.Attributes["id"].Value;
                        FloatingRateCalculationReference ob = new FloatingRateCalculationReference(interestLegRateNode);
                        IDManager.SetID(interestLegRateIDRef_, ob);
                    }
                    else if (interestLegRateNode.Attributes["href"] != null)
                    {
                        interestLegRateIDRef_ = interestLegRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        interestLegRate_ = new FloatingRateCalculationReference(interestLegRateNode);
                    }
                }
                else
                {
                    interestLegRate_ = new FloatingRateCalculationReference(interestLegRateNode);
                }
            }


            XmlNode specificRateNode = xmlNode.SelectSingleNode("specificRate");

            if (specificRateNode != null)
            {
                if (specificRateNode.Attributes["href"] != null || specificRateNode.Attributes["id"] != null)
                {
                    if (specificRateNode.Attributes["id"] != null)
                    {
                        specificRateIDRef_ = specificRateNode.Attributes["id"].Value;
                        InterestAccrualsMethod ob = new InterestAccrualsMethod(specificRateNode);
                        IDManager.SetID(specificRateIDRef_, ob);
                    }
                    else if (specificRateNode.Attributes["href"] != null)
                    {
                        specificRateIDRef_ = specificRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        specificRate_ = new InterestAccrualsMethod(specificRateNode);
                    }
                }
                else
                {
                    specificRate_ = new InterestAccrualsMethod(specificRateNode);
                }
            }
        }