public EquitySwapTransactionSupplement(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode mutualEarlyTerminationNode = xmlNode.SelectSingleNode("mutualEarlyTermination");

            if (mutualEarlyTerminationNode != null)
            {
                if (mutualEarlyTerminationNode.Attributes["href"] != null || mutualEarlyTerminationNode.Attributes["id"] != null)
                {
                    if (mutualEarlyTerminationNode.Attributes["id"] != null)
                    {
                        mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(mutualEarlyTerminationNode);
                        IDManager.SetID(mutualEarlyTerminationIDRef_, ob);
                    }
                    else if (mutualEarlyTerminationNode.Attributes["href"] != null)
                    {
                        mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode);
                    }
                }
                else
                {
                    mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode);
                }
            }


            XmlNode optionalEarlyTerminationNode = xmlNode.SelectSingleNode("optionalEarlyTermination");

            if (optionalEarlyTerminationNode != null)
            {
                if (optionalEarlyTerminationNode.Attributes["href"] != null || optionalEarlyTerminationNode.Attributes["id"] != null)
                {
                    if (optionalEarlyTerminationNode.Attributes["id"] != null)
                    {
                        optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(optionalEarlyTerminationNode);
                        IDManager.SetID(optionalEarlyTerminationIDRef_, ob);
                    }
                    else if (optionalEarlyTerminationNode.Attributes["href"] != null)
                    {
                        optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode);
                    }
                }
                else
                {
                    optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode);
                }
            }


            XmlNode breakFundingRecoveryNode = xmlNode.SelectSingleNode("breakFundingRecovery");

            if (breakFundingRecoveryNode != null)
            {
                if (breakFundingRecoveryNode.Attributes["href"] != null || breakFundingRecoveryNode.Attributes["id"] != null)
                {
                    if (breakFundingRecoveryNode.Attributes["id"] != null)
                    {
                        breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(breakFundingRecoveryNode);
                        IDManager.SetID(breakFundingRecoveryIDRef_, ob);
                    }
                    else if (breakFundingRecoveryNode.Attributes["href"] != null)
                    {
                        breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode);
                    }
                }
                else
                {
                    breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode);
                }
            }


            XmlNode breakFeeElectionNode = xmlNode.SelectSingleNode("breakFeeElection");

            if (breakFeeElectionNode != null)
            {
                if (breakFeeElectionNode.Attributes["href"] != null || breakFeeElectionNode.Attributes["id"] != null)
                {
                    if (breakFeeElectionNode.Attributes["id"] != null)
                    {
                        breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["id"].Value;
                        FeeElectionEnum ob = new FeeElectionEnum(breakFeeElectionNode);
                        IDManager.SetID(breakFeeElectionIDRef_, ob);
                    }
                    else if (breakFeeElectionNode.Attributes["href"] != null)
                    {
                        breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode);
                    }
                }
                else
                {
                    breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode);
                }
            }


            XmlNode breakFeeRateNode = xmlNode.SelectSingleNode("breakFeeRate");

            if (breakFeeRateNode != null)
            {
                if (breakFeeRateNode.Attributes["href"] != null || breakFeeRateNode.Attributes["id"] != null)
                {
                    if (breakFeeRateNode.Attributes["id"] != null)
                    {
                        breakFeeRateIDRef_ = breakFeeRateNode.Attributes["id"].Value;
                        NonNegativeDecimal ob = new NonNegativeDecimal(breakFeeRateNode);
                        IDManager.SetID(breakFeeRateIDRef_, ob);
                    }
                    else if (breakFeeRateNode.Attributes["href"] != null)
                    {
                        breakFeeRateIDRef_ = breakFeeRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode);
                    }
                }
                else
                {
                    breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode);
                }
            }


            XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback");

            if (multipleExchangeIndexAnnexFallbackNode != null)
            {
                if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null)
                {
                    if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null)
                    {
                        multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                        IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob);
                    }
                    else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null)
                    {
                        multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value;
                    }
                    else
                    {
                        multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                    }
                }
                else
                {
                    multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                }
            }


            XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback");

            if (componentSecurityIndexAnnexFallbackNode != null)
            {
                if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null)
                {
                    if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null)
                    {
                        componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                        IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob);
                    }
                    else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null)
                    {
                        componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value;
                    }
                    else
                    {
                        componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                    }
                }
                else
                {
                    componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                }
            }


            XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction");

            if (localJurisdictionNode != null)
            {
                if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null)
                {
                    if (localJurisdictionNode.Attributes["id"] != null)
                    {
                        localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value;
                        CountryCode ob = new CountryCode(localJurisdictionNode);
                        IDManager.SetID(localJurisdictionIDRef_, ob);
                    }
                    else if (localJurisdictionNode.Attributes["href"] != null)
                    {
                        localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        localJurisdiction_ = new CountryCode(localJurisdictionNode);
                    }
                }
                else
                {
                    localJurisdiction_ = new CountryCode(localJurisdictionNode);
                }
            }


            XmlNode relevantJurisdictionNode = xmlNode.SelectSingleNode("relevantJurisdiction");

            if (relevantJurisdictionNode != null)
            {
                if (relevantJurisdictionNode.Attributes["href"] != null || relevantJurisdictionNode.Attributes["id"] != null)
                {
                    if (relevantJurisdictionNode.Attributes["id"] != null)
                    {
                        relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["id"].Value;
                        CountryCode ob = new CountryCode(relevantJurisdictionNode);
                        IDManager.SetID(relevantJurisdictionIDRef_, ob);
                    }
                    else if (relevantJurisdictionNode.Attributes["href"] != null)
                    {
                        relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
                    }
                }
                else
                {
                    relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
                }
            }


            XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents");

            if (extraordinaryEventsNode != null)
            {
                if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null)
                {
                    if (extraordinaryEventsNode.Attributes["id"] != null)
                    {
                        extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value;
                        ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode);
                        IDManager.SetID(extraordinaryEventsIDRef_, ob);
                    }
                    else if (extraordinaryEventsNode.Attributes["href"] != null)
                    {
                        extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
                    }
                }
                else
                {
                    extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
                }
            }
        }
Ejemplo n.º 2
0
        public EquitySwapTransactionSupplement(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList mutualEarlyTerminationNodeList = xmlNode.SelectNodes("mutualEarlyTermination");

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

            foreach (XmlNode item in mutualEarlyTerminationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        mutualEarlyTerminationIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(mutualEarlyTerminationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        mutualEarlyTerminationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        mutualEarlyTermination = new XsdTypeBoolean(item);
                    }
                }
            }


            XmlNodeList optionalEarlyTerminationNodeList = xmlNode.SelectNodes("optionalEarlyTermination");

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

            foreach (XmlNode item in optionalEarlyTerminationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        optionalEarlyTerminationIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(optionalEarlyTerminationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        optionalEarlyTerminationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        optionalEarlyTermination = new XsdTypeBoolean(item);
                    }
                }
            }


            XmlNodeList breakFundingRecoveryNodeList = xmlNode.SelectNodes("breakFundingRecovery");

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

            foreach (XmlNode item in breakFundingRecoveryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        breakFundingRecoveryIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(breakFundingRecoveryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        breakFundingRecoveryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        breakFundingRecovery = new XsdTypeBoolean(item);
                    }
                }
            }


            XmlNodeList breakFeeElectionNodeList = xmlNode.SelectNodes("breakFeeElection");

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

            foreach (XmlNode item in breakFeeElectionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        breakFeeElectionIDRef = item.Attributes["id"].Name;
                        FeeElectionEnum ob = FeeElectionEnum();
                        IDManager.SetID(breakFeeElectionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        breakFeeElectionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        breakFeeElection = new FeeElectionEnum(item);
                    }
                }
            }


            XmlNodeList breakFeeRateNodeList = xmlNode.SelectNodes("breakFeeRate");

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

            foreach (XmlNode item in breakFeeRateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        breakFeeRateIDRef = item.Attributes["id"].Name;
                        NonNegativeDecimal ob = NonNegativeDecimal();
                        IDManager.SetID(breakFeeRateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        breakFeeRateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        breakFeeRate = new NonNegativeDecimal(item);
                    }
                }
            }


            XmlNodeList multipleExchangeIndexAnnexFallbackNodeList = xmlNode.SelectNodes("multipleExchangeIndexAnnexFallback");

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

            foreach (XmlNode item in multipleExchangeIndexAnnexFallbackNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        multipleExchangeIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        multipleExchangeIndexAnnexFallback = new XsdTypeBoolean(item);
                    }
                }
            }


            XmlNodeList componentSecurityIndexAnnexFallbackNodeList = xmlNode.SelectNodes("componentSecurityIndexAnnexFallback");

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

            foreach (XmlNode item in componentSecurityIndexAnnexFallbackNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        componentSecurityIndexAnnexFallbackIDRef = item.Attributes["id"].Name;
                        XsdTypeBoolean ob = XsdTypeBoolean();
                        IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        componentSecurityIndexAnnexFallbackIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        componentSecurityIndexAnnexFallback = new XsdTypeBoolean(item);
                    }
                }
            }


            XmlNodeList localJurisdictionNodeList = xmlNode.SelectNodes("localJurisdiction");

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

            foreach (XmlNode item in localJurisdictionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        localJurisdictionIDRef = item.Attributes["id"].Name;
                        CountryCode ob = CountryCode();
                        IDManager.SetID(localJurisdictionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        localJurisdictionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        localJurisdiction = new CountryCode(item);
                    }
                }
            }


            XmlNodeList relevantJurisdictionNodeList = xmlNode.SelectNodes("relevantJurisdiction");

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

            foreach (XmlNode item in relevantJurisdictionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        relevantJurisdictionIDRef = item.Attributes["id"].Name;
                        CountryCode ob = CountryCode();
                        IDManager.SetID(relevantJurisdictionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        relevantJurisdictionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        relevantJurisdiction = new CountryCode(item);
                    }
                }
            }


            XmlNodeList extraordinaryEventsNodeList = xmlNode.SelectNodes("extraordinaryEvents");

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

            foreach (XmlNode item in extraordinaryEventsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        extraordinaryEventsIDRef = item.Attributes["id"].Name;
                        ExtraordinaryEvents ob = ExtraordinaryEvents();
                        IDManager.SetID(extraordinaryEventsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        extraordinaryEventsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        extraordinaryEvents = new ExtraordinaryEvents(item);
                    }
                }
            }
        }
 public EquitySwapTransactionSupplement(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode mutualEarlyTerminationNode = xmlNode.SelectSingleNode("mutualEarlyTermination");
     
     if (mutualEarlyTerminationNode != null)
     {
         if (mutualEarlyTerminationNode.Attributes["href"] != null || mutualEarlyTerminationNode.Attributes["id"] != null) 
         {
             if (mutualEarlyTerminationNode.Attributes["id"] != null) 
             {
                 mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(mutualEarlyTerminationNode);
                 IDManager.SetID(mutualEarlyTerminationIDRef_, ob);
             }
             else if (mutualEarlyTerminationNode.Attributes["href"] != null)
             {
                 mutualEarlyTerminationIDRef_ = mutualEarlyTerminationNode.Attributes["href"].Value;
             }
             else
             {
                 mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode);
             }
         }
         else
         {
             mutualEarlyTermination_ = new XsdTypeBoolean(mutualEarlyTerminationNode);
         }
     }
     
 
     XmlNode optionalEarlyTerminationNode = xmlNode.SelectSingleNode("optionalEarlyTermination");
     
     if (optionalEarlyTerminationNode != null)
     {
         if (optionalEarlyTerminationNode.Attributes["href"] != null || optionalEarlyTerminationNode.Attributes["id"] != null) 
         {
             if (optionalEarlyTerminationNode.Attributes["id"] != null) 
             {
                 optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(optionalEarlyTerminationNode);
                 IDManager.SetID(optionalEarlyTerminationIDRef_, ob);
             }
             else if (optionalEarlyTerminationNode.Attributes["href"] != null)
             {
                 optionalEarlyTerminationIDRef_ = optionalEarlyTerminationNode.Attributes["href"].Value;
             }
             else
             {
                 optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode);
             }
         }
         else
         {
             optionalEarlyTermination_ = new XsdTypeBoolean(optionalEarlyTerminationNode);
         }
     }
     
 
     XmlNode breakFundingRecoveryNode = xmlNode.SelectSingleNode("breakFundingRecovery");
     
     if (breakFundingRecoveryNode != null)
     {
         if (breakFundingRecoveryNode.Attributes["href"] != null || breakFundingRecoveryNode.Attributes["id"] != null) 
         {
             if (breakFundingRecoveryNode.Attributes["id"] != null) 
             {
                 breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(breakFundingRecoveryNode);
                 IDManager.SetID(breakFundingRecoveryIDRef_, ob);
             }
             else if (breakFundingRecoveryNode.Attributes["href"] != null)
             {
                 breakFundingRecoveryIDRef_ = breakFundingRecoveryNode.Attributes["href"].Value;
             }
             else
             {
                 breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode);
             }
         }
         else
         {
             breakFundingRecovery_ = new XsdTypeBoolean(breakFundingRecoveryNode);
         }
     }
     
 
     XmlNode breakFeeElectionNode = xmlNode.SelectSingleNode("breakFeeElection");
     
     if (breakFeeElectionNode != null)
     {
         if (breakFeeElectionNode.Attributes["href"] != null || breakFeeElectionNode.Attributes["id"] != null) 
         {
             if (breakFeeElectionNode.Attributes["id"] != null) 
             {
                 breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["id"].Value;
                 FeeElectionEnum ob = new FeeElectionEnum(breakFeeElectionNode);
                 IDManager.SetID(breakFeeElectionIDRef_, ob);
             }
             else if (breakFeeElectionNode.Attributes["href"] != null)
             {
                 breakFeeElectionIDRef_ = breakFeeElectionNode.Attributes["href"].Value;
             }
             else
             {
                 breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode);
             }
         }
         else
         {
             breakFeeElection_ = new FeeElectionEnum(breakFeeElectionNode);
         }
     }
     
 
     XmlNode breakFeeRateNode = xmlNode.SelectSingleNode("breakFeeRate");
     
     if (breakFeeRateNode != null)
     {
         if (breakFeeRateNode.Attributes["href"] != null || breakFeeRateNode.Attributes["id"] != null) 
         {
             if (breakFeeRateNode.Attributes["id"] != null) 
             {
                 breakFeeRateIDRef_ = breakFeeRateNode.Attributes["id"].Value;
                 NonNegativeDecimal ob = new NonNegativeDecimal(breakFeeRateNode);
                 IDManager.SetID(breakFeeRateIDRef_, ob);
             }
             else if (breakFeeRateNode.Attributes["href"] != null)
             {
                 breakFeeRateIDRef_ = breakFeeRateNode.Attributes["href"].Value;
             }
             else
             {
                 breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode);
             }
         }
         else
         {
             breakFeeRate_ = new NonNegativeDecimal(breakFeeRateNode);
         }
     }
     
 
     XmlNode multipleExchangeIndexAnnexFallbackNode = xmlNode.SelectSingleNode("multipleExchangeIndexAnnexFallback");
     
     if (multipleExchangeIndexAnnexFallbackNode != null)
     {
         if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null || multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (multipleExchangeIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
                 IDManager.SetID(multipleExchangeIndexAnnexFallbackIDRef_, ob);
             }
             else if (multipleExchangeIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 multipleExchangeIndexAnnexFallbackIDRef_ = multipleExchangeIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
             }
         }
         else
         {
             multipleExchangeIndexAnnexFallback_ = new XsdTypeBoolean(multipleExchangeIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode componentSecurityIndexAnnexFallbackNode = xmlNode.SelectSingleNode("componentSecurityIndexAnnexFallback");
     
     if (componentSecurityIndexAnnexFallbackNode != null)
     {
         if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null || componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
         {
             if (componentSecurityIndexAnnexFallbackNode.Attributes["id"] != null) 
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
                 IDManager.SetID(componentSecurityIndexAnnexFallbackIDRef_, ob);
             }
             else if (componentSecurityIndexAnnexFallbackNode.Attributes["href"] != null)
             {
                 componentSecurityIndexAnnexFallbackIDRef_ = componentSecurityIndexAnnexFallbackNode.Attributes["href"].Value;
             }
             else
             {
                 componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
             }
         }
         else
         {
             componentSecurityIndexAnnexFallback_ = new XsdTypeBoolean(componentSecurityIndexAnnexFallbackNode);
         }
     }
     
 
     XmlNode localJurisdictionNode = xmlNode.SelectSingleNode("localJurisdiction");
     
     if (localJurisdictionNode != null)
     {
         if (localJurisdictionNode.Attributes["href"] != null || localJurisdictionNode.Attributes["id"] != null) 
         {
             if (localJurisdictionNode.Attributes["id"] != null) 
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(localJurisdictionNode);
                 IDManager.SetID(localJurisdictionIDRef_, ob);
             }
             else if (localJurisdictionNode.Attributes["href"] != null)
             {
                 localJurisdictionIDRef_ = localJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 localJurisdiction_ = new CountryCode(localJurisdictionNode);
             }
         }
         else
         {
             localJurisdiction_ = new CountryCode(localJurisdictionNode);
         }
     }
     
 
     XmlNode relevantJurisdictionNode = xmlNode.SelectSingleNode("relevantJurisdiction");
     
     if (relevantJurisdictionNode != null)
     {
         if (relevantJurisdictionNode.Attributes["href"] != null || relevantJurisdictionNode.Attributes["id"] != null) 
         {
             if (relevantJurisdictionNode.Attributes["id"] != null) 
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["id"].Value;
                 CountryCode ob = new CountryCode(relevantJurisdictionNode);
                 IDManager.SetID(relevantJurisdictionIDRef_, ob);
             }
             else if (relevantJurisdictionNode.Attributes["href"] != null)
             {
                 relevantJurisdictionIDRef_ = relevantJurisdictionNode.Attributes["href"].Value;
             }
             else
             {
                 relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
             }
         }
         else
         {
             relevantJurisdiction_ = new CountryCode(relevantJurisdictionNode);
         }
     }
     
 
     XmlNode extraordinaryEventsNode = xmlNode.SelectSingleNode("extraordinaryEvents");
     
     if (extraordinaryEventsNode != null)
     {
         if (extraordinaryEventsNode.Attributes["href"] != null || extraordinaryEventsNode.Attributes["id"] != null) 
         {
             if (extraordinaryEventsNode.Attributes["id"] != null) 
             {
                 extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["id"].Value;
                 ExtraordinaryEvents ob = new ExtraordinaryEvents(extraordinaryEventsNode);
                 IDManager.SetID(extraordinaryEventsIDRef_, ob);
             }
             else if (extraordinaryEventsNode.Attributes["href"] != null)
             {
                 extraordinaryEventsIDRef_ = extraordinaryEventsNode.Attributes["href"].Value;
             }
             else
             {
                 extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
             }
         }
         else
         {
             extraordinaryEvents_ = new ExtraordinaryEvents(extraordinaryEventsNode);
         }
     }
     
 
 }