public IndexReferenceInformation(XmlNode xmlNode)
 {
     XmlNode indexNameNode = xmlNode.SelectSingleNode("indexName");
     
     if (indexNameNode != null)
     {
         if (indexNameNode.Attributes["href"] != null || indexNameNode.Attributes["id"] != null) 
         {
             if (indexNameNode.Attributes["id"] != null) 
             {
                 indexNameIDRef_ = indexNameNode.Attributes["id"].Value;
                 IndexName ob = new IndexName(indexNameNode);
                 IDManager.SetID(indexNameIDRef_, ob);
             }
             else if (indexNameNode.Attributes["href"] != null)
             {
                 indexNameIDRef_ = indexNameNode.Attributes["href"].Value;
             }
             else
             {
                 indexName_ = new IndexName(indexNameNode);
             }
         }
         else
         {
             indexName_ = new IndexName(indexNameNode);
         }
     }
     
 
     XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");
     
     if (indexIdNodeList != null)
     {
         this.indexId_ = new List<IndexId>();
         foreach (XmlNode item in indexIdNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     indexIdIDRef_ = item.Attributes["id"].Value;
                     indexId_.Add(new IndexId(item));
                     IDManager.SetID(indexIdIDRef_, indexId_[indexId_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     indexIdIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 indexId_.Add(new IndexId(item));
                 }
             }
             else
             {
                 indexId_.Add(new IndexId(item));
             }
         }
     }
     
 
     XmlNode indexSeriesNode = xmlNode.SelectSingleNode("indexSeries");
     
     if (indexSeriesNode != null)
     {
         if (indexSeriesNode.Attributes["href"] != null || indexSeriesNode.Attributes["id"] != null) 
         {
             if (indexSeriesNode.Attributes["id"] != null) 
             {
                 indexSeriesIDRef_ = indexSeriesNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexSeriesNode);
                 IDManager.SetID(indexSeriesIDRef_, ob);
             }
             else if (indexSeriesNode.Attributes["href"] != null)
             {
                 indexSeriesIDRef_ = indexSeriesNode.Attributes["href"].Value;
             }
             else
             {
                 indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
             }
         }
         else
         {
             indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
         }
     }
     
 
     XmlNode indexAnnexVersionNode = xmlNode.SelectSingleNode("indexAnnexVersion");
     
     if (indexAnnexVersionNode != null)
     {
         if (indexAnnexVersionNode.Attributes["href"] != null || indexAnnexVersionNode.Attributes["id"] != null) 
         {
             if (indexAnnexVersionNode.Attributes["id"] != null) 
             {
                 indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexAnnexVersionNode);
                 IDManager.SetID(indexAnnexVersionIDRef_, ob);
             }
             else if (indexAnnexVersionNode.Attributes["href"] != null)
             {
                 indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["href"].Value;
             }
             else
             {
                 indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
             }
         }
         else
         {
             indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
         }
     }
     
 
     XmlNode indexAnnexDateNode = xmlNode.SelectSingleNode("indexAnnexDate");
     
     if (indexAnnexDateNode != null)
     {
         if (indexAnnexDateNode.Attributes["href"] != null || indexAnnexDateNode.Attributes["id"] != null) 
         {
             if (indexAnnexDateNode.Attributes["id"] != null) 
             {
                 indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(indexAnnexDateNode);
                 IDManager.SetID(indexAnnexDateIDRef_, ob);
             }
             else if (indexAnnexDateNode.Attributes["href"] != null)
             {
                 indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["href"].Value;
             }
             else
             {
                 indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
             }
         }
         else
         {
             indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
         }
     }
     
 
     XmlNode indexAnnexSourceNode = xmlNode.SelectSingleNode("indexAnnexSource");
     
     if (indexAnnexSourceNode != null)
     {
         if (indexAnnexSourceNode.Attributes["href"] != null || indexAnnexSourceNode.Attributes["id"] != null) 
         {
             if (indexAnnexSourceNode.Attributes["id"] != null) 
             {
                 indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["id"].Value;
                 IndexAnnexSource ob = new IndexAnnexSource(indexAnnexSourceNode);
                 IDManager.SetID(indexAnnexSourceIDRef_, ob);
             }
             else if (indexAnnexSourceNode.Attributes["href"] != null)
             {
                 indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["href"].Value;
             }
             else
             {
                 indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
             }
         }
         else
         {
             indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
         }
     }
     
 
     XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");
     
     if (excludedReferenceEntityNodeList != null)
     {
         this.excludedReferenceEntity_ = new List<LegalEntity>();
         foreach (XmlNode item in excludedReferenceEntityNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     excludedReferenceEntityIDRef_ = item.Attributes["id"].Value;
                     excludedReferenceEntity_.Add(new LegalEntity(item));
                     IDManager.SetID(excludedReferenceEntityIDRef_, excludedReferenceEntity_[excludedReferenceEntity_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     excludedReferenceEntityIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 excludedReferenceEntity_.Add(new LegalEntity(item));
                 }
             }
             else
             {
                 excludedReferenceEntity_.Add(new LegalEntity(item));
             }
         }
     }
     
 
     XmlNode trancheNode = xmlNode.SelectSingleNode("tranche");
     
     if (trancheNode != null)
     {
         if (trancheNode.Attributes["href"] != null || trancheNode.Attributes["id"] != null) 
         {
             if (trancheNode.Attributes["id"] != null) 
             {
                 trancheIDRef_ = trancheNode.Attributes["id"].Value;
                 Tranche ob = new Tranche(trancheNode);
                 IDManager.SetID(trancheIDRef_, ob);
             }
             else if (trancheNode.Attributes["href"] != null)
             {
                 trancheIDRef_ = trancheNode.Attributes["href"].Value;
             }
             else
             {
                 tranche_ = new Tranche(trancheNode);
             }
         }
         else
         {
             tranche_ = new Tranche(trancheNode);
         }
     }
     
 
     XmlNode settledEntityMatrixNode = xmlNode.SelectSingleNode("settledEntityMatrix");
     
     if (settledEntityMatrixNode != null)
     {
         if (settledEntityMatrixNode.Attributes["href"] != null || settledEntityMatrixNode.Attributes["id"] != null) 
         {
             if (settledEntityMatrixNode.Attributes["id"] != null) 
             {
                 settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["id"].Value;
                 SettledEntityMatrix ob = new SettledEntityMatrix(settledEntityMatrixNode);
                 IDManager.SetID(settledEntityMatrixIDRef_, ob);
             }
             else if (settledEntityMatrixNode.Attributes["href"] != null)
             {
                 settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["href"].Value;
             }
             else
             {
                 settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
             }
         }
         else
         {
             settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
         }
     }
     
 
 }
Example #2
0
        public BasketReferenceInformation(XmlNode xmlNode)
        {
            XmlNode basketNameNode = xmlNode.SelectSingleNode("basketName");

            if (basketNameNode != null)
            {
                if (basketNameNode.Attributes["href"] != null || basketNameNode.Attributes["id"] != null)
                {
                    if (basketNameNode.Attributes["id"] != null)
                    {
                        basketNameIDRef_ = basketNameNode.Attributes["id"].Value;
                        BasketName ob = new BasketName(basketNameNode);
                        IDManager.SetID(basketNameIDRef_, ob);
                    }
                    else if (basketNameNode.Attributes["href"] != null)
                    {
                        basketNameIDRef_ = basketNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        basketName_ = new BasketName(basketNameNode);
                    }
                }
                else
                {
                    basketName_ = new BasketName(basketNameNode);
                }
            }


            XmlNodeList basketIdNodeList = xmlNode.SelectNodes("basketId");

            if (basketIdNodeList != null)
            {
                this.basketId_ = new List <BasketId>();
                foreach (XmlNode item in basketIdNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            basketIdIDRef_ = item.Attributes["id"].Value;
                            basketId_.Add(new BasketId(item));
                            IDManager.SetID(basketIdIDRef_, basketId_[basketId_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            basketIdIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            basketId_.Add(new BasketId(item));
                        }
                    }
                    else
                    {
                        basketId_.Add(new BasketId(item));
                    }
                }
            }


            XmlNode referencePoolNode = xmlNode.SelectSingleNode("referencePool");

            if (referencePoolNode != null)
            {
                if (referencePoolNode.Attributes["href"] != null || referencePoolNode.Attributes["id"] != null)
                {
                    if (referencePoolNode.Attributes["id"] != null)
                    {
                        referencePoolIDRef_ = referencePoolNode.Attributes["id"].Value;
                        ReferencePool ob = new ReferencePool(referencePoolNode);
                        IDManager.SetID(referencePoolIDRef_, ob);
                    }
                    else if (referencePoolNode.Attributes["href"] != null)
                    {
                        referencePoolIDRef_ = referencePoolNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referencePool_ = new ReferencePool(referencePoolNode);
                    }
                }
                else
                {
                    referencePool_ = new ReferencePool(referencePoolNode);
                }
            }


            XmlNode nthToDefaultNode = xmlNode.SelectSingleNode("nthToDefault");

            if (nthToDefaultNode != null)
            {
                if (nthToDefaultNode.Attributes["href"] != null || nthToDefaultNode.Attributes["id"] != null)
                {
                    if (nthToDefaultNode.Attributes["id"] != null)
                    {
                        nthToDefaultIDRef_ = nthToDefaultNode.Attributes["id"].Value;
                        XsdTypePositiveInteger ob = new XsdTypePositiveInteger(nthToDefaultNode);
                        IDManager.SetID(nthToDefaultIDRef_, ob);
                    }
                    else if (nthToDefaultNode.Attributes["href"] != null)
                    {
                        nthToDefaultIDRef_ = nthToDefaultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        nthToDefault_ = new XsdTypePositiveInteger(nthToDefaultNode);
                    }
                }
                else
                {
                    nthToDefault_ = new XsdTypePositiveInteger(nthToDefaultNode);
                }
            }


            XmlNode mthToDefaultNode = xmlNode.SelectSingleNode("mthToDefault");

            if (mthToDefaultNode != null)
            {
                if (mthToDefaultNode.Attributes["href"] != null || mthToDefaultNode.Attributes["id"] != null)
                {
                    if (mthToDefaultNode.Attributes["id"] != null)
                    {
                        mthToDefaultIDRef_ = mthToDefaultNode.Attributes["id"].Value;
                        XsdTypePositiveInteger ob = new XsdTypePositiveInteger(mthToDefaultNode);
                        IDManager.SetID(mthToDefaultIDRef_, ob);
                    }
                    else if (mthToDefaultNode.Attributes["href"] != null)
                    {
                        mthToDefaultIDRef_ = mthToDefaultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        mthToDefault_ = new XsdTypePositiveInteger(mthToDefaultNode);
                    }
                }
                else
                {
                    mthToDefault_ = new XsdTypePositiveInteger(mthToDefaultNode);
                }
            }


            XmlNode trancheNode = xmlNode.SelectSingleNode("tranche");

            if (trancheNode != null)
            {
                if (trancheNode.Attributes["href"] != null || trancheNode.Attributes["id"] != null)
                {
                    if (trancheNode.Attributes["id"] != null)
                    {
                        trancheIDRef_ = trancheNode.Attributes["id"].Value;
                        Tranche ob = new Tranche(trancheNode);
                        IDManager.SetID(trancheIDRef_, ob);
                    }
                    else if (trancheNode.Attributes["href"] != null)
                    {
                        trancheIDRef_ = trancheNode.Attributes["href"].Value;
                    }
                    else
                    {
                        tranche_ = new Tranche(trancheNode);
                    }
                }
                else
                {
                    tranche_ = new Tranche(trancheNode);
                }
            }
        }
 public BasketReferenceInformation(XmlNode xmlNode)
 {
     XmlNodeList basketNameNodeList = xmlNode.SelectNodes("basketName");
     if (basketNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in basketNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 basketNameIDRef = item.Attributes["id"].Name;
                 BasketName ob = BasketName();
                 IDManager.SetID(basketNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 basketNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 basketName = new BasketName(item);
             }
         }
     }
     
 
     XmlNodeList basketIdNodeList = xmlNode.SelectNodes("basketId");
     
     foreach (XmlNode item in basketIdNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 basketIdIDRef = item.Attributes["id"].Name;
                 List<BasketId> ob = new List<BasketId>();
                 ob.Add(new BasketId(item));
                 IDManager.SetID(basketIdIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 basketIdIDRef = item.Attributes["href"].Name;
             }
             else
             {
             basketId.Add(new BasketId(item));
             }
         }
     }
     
 
     XmlNodeList referencePoolNodeList = xmlNode.SelectNodes("referencePool");
     if (referencePoolNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in referencePoolNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 referencePoolIDRef = item.Attributes["id"].Name;
                 ReferencePool ob = ReferencePool();
                 IDManager.SetID(referencePoolIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 referencePoolIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 referencePool = new ReferencePool(item);
             }
         }
     }
     
 
     XmlNodeList nthToDefaultNodeList = xmlNode.SelectNodes("nthToDefault");
     if (nthToDefaultNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in nthToDefaultNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 nthToDefaultIDRef = item.Attributes["id"].Name;
                 XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                 IDManager.SetID(nthToDefaultIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 nthToDefaultIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 nthToDefault = new XsdTypePositiveInteger(item);
             }
         }
     }
     
 
     XmlNodeList mthToDefaultNodeList = xmlNode.SelectNodes("mthToDefault");
     if (mthToDefaultNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in mthToDefaultNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 mthToDefaultIDRef = item.Attributes["id"].Name;
                 XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                 IDManager.SetID(mthToDefaultIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 mthToDefaultIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 mthToDefault = new XsdTypePositiveInteger(item);
             }
         }
     }
     
 
     XmlNodeList trancheNodeList = xmlNode.SelectNodes("tranche");
     if (trancheNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in trancheNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 trancheIDRef = item.Attributes["id"].Name;
                 Tranche ob = Tranche();
                 IDManager.SetID(trancheIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 trancheIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 tranche = new Tranche(item);
             }
         }
     }
     
 
 }
 public IndexReferenceInformation(XmlNode xmlNode)
 {
     XmlNodeList indexNameNodeList = xmlNode.SelectNodes("indexName");
     if (indexNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexNameIDRef = item.Attributes["id"].Name;
                 IndexName ob = IndexName();
                 IDManager.SetID(indexNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexName = new IndexName(item);
             }
         }
     }
     
 
     XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");
     
     foreach (XmlNode item in indexIdNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexIdIDRef = item.Attributes["id"].Name;
                 List<IndexId> ob = new List<IndexId>();
                 ob.Add(new IndexId(item));
                 IDManager.SetID(indexIdIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexIdIDRef = item.Attributes["href"].Name;
             }
             else
             {
             indexId.Add(new IndexId(item));
             }
         }
     }
     
 
     XmlNodeList indexSeriesNodeList = xmlNode.SelectNodes("indexSeries");
     if (indexSeriesNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexSeriesNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexSeriesIDRef = item.Attributes["id"].Name;
                 XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                 IDManager.SetID(indexSeriesIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexSeriesIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexSeries = new XsdTypePositiveInteger(item);
             }
         }
     }
     
 
     XmlNodeList indexAnnexVersionNodeList = xmlNode.SelectNodes("indexAnnexVersion");
     if (indexAnnexVersionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexAnnexVersionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexAnnexVersionIDRef = item.Attributes["id"].Name;
                 XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                 IDManager.SetID(indexAnnexVersionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexAnnexVersionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexAnnexVersion = new XsdTypePositiveInteger(item);
             }
         }
     }
     
 
     XmlNodeList indexAnnexDateNodeList = xmlNode.SelectNodes("indexAnnexDate");
     if (indexAnnexDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexAnnexDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexAnnexDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(indexAnnexDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexAnnexDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexAnnexDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList indexAnnexSourceNodeList = xmlNode.SelectNodes("indexAnnexSource");
     if (indexAnnexSourceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexAnnexSourceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexAnnexSourceIDRef = item.Attributes["id"].Name;
                 IndexAnnexSource ob = IndexAnnexSource();
                 IDManager.SetID(indexAnnexSourceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexAnnexSourceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexAnnexSource = new IndexAnnexSource(item);
             }
         }
     }
     
 
     XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");
     
     foreach (XmlNode item in excludedReferenceEntityNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 excludedReferenceEntityIDRef = item.Attributes["id"].Name;
                 List<LegalEntity> ob = new List<LegalEntity>();
                 ob.Add(new LegalEntity(item));
                 IDManager.SetID(excludedReferenceEntityIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 excludedReferenceEntityIDRef = item.Attributes["href"].Name;
             }
             else
             {
             excludedReferenceEntity.Add(new LegalEntity(item));
             }
         }
     }
     
 
     XmlNodeList trancheNodeList = xmlNode.SelectNodes("tranche");
     if (trancheNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in trancheNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 trancheIDRef = item.Attributes["id"].Name;
                 Tranche ob = Tranche();
                 IDManager.SetID(trancheIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 trancheIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 tranche = new Tranche(item);
             }
         }
     }
     
 
     XmlNodeList settledEntityMatrixNodeList = xmlNode.SelectNodes("settledEntityMatrix");
     if (settledEntityMatrixNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in settledEntityMatrixNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 settledEntityMatrixIDRef = item.Attributes["id"].Name;
                 SettledEntityMatrix ob = SettledEntityMatrix();
                 IDManager.SetID(settledEntityMatrixIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 settledEntityMatrixIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 settledEntityMatrix = new SettledEntityMatrix(item);
             }
         }
     }
     
 
 }
 public BasketReferenceInformation(XmlNode xmlNode)
 {
     XmlNode basketNameNode = xmlNode.SelectSingleNode("basketName");
     
     if (basketNameNode != null)
     {
         if (basketNameNode.Attributes["href"] != null || basketNameNode.Attributes["id"] != null) 
         {
             if (basketNameNode.Attributes["id"] != null) 
             {
                 basketNameIDRef_ = basketNameNode.Attributes["id"].Value;
                 BasketName ob = new BasketName(basketNameNode);
                 IDManager.SetID(basketNameIDRef_, ob);
             }
             else if (basketNameNode.Attributes["href"] != null)
             {
                 basketNameIDRef_ = basketNameNode.Attributes["href"].Value;
             }
             else
             {
                 basketName_ = new BasketName(basketNameNode);
             }
         }
         else
         {
             basketName_ = new BasketName(basketNameNode);
         }
     }
     
 
     XmlNodeList basketIdNodeList = xmlNode.SelectNodes("basketId");
     
     if (basketIdNodeList != null)
     {
         this.basketId_ = new List<BasketId>();
         foreach (XmlNode item in basketIdNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     basketIdIDRef_ = item.Attributes["id"].Value;
                     basketId_.Add(new BasketId(item));
                     IDManager.SetID(basketIdIDRef_, basketId_[basketId_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     basketIdIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 basketId_.Add(new BasketId(item));
                 }
             }
             else
             {
                 basketId_.Add(new BasketId(item));
             }
         }
     }
     
 
     XmlNode referencePoolNode = xmlNode.SelectSingleNode("referencePool");
     
     if (referencePoolNode != null)
     {
         if (referencePoolNode.Attributes["href"] != null || referencePoolNode.Attributes["id"] != null) 
         {
             if (referencePoolNode.Attributes["id"] != null) 
             {
                 referencePoolIDRef_ = referencePoolNode.Attributes["id"].Value;
                 ReferencePool ob = new ReferencePool(referencePoolNode);
                 IDManager.SetID(referencePoolIDRef_, ob);
             }
             else if (referencePoolNode.Attributes["href"] != null)
             {
                 referencePoolIDRef_ = referencePoolNode.Attributes["href"].Value;
             }
             else
             {
                 referencePool_ = new ReferencePool(referencePoolNode);
             }
         }
         else
         {
             referencePool_ = new ReferencePool(referencePoolNode);
         }
     }
     
 
     XmlNode nthToDefaultNode = xmlNode.SelectSingleNode("nthToDefault");
     
     if (nthToDefaultNode != null)
     {
         if (nthToDefaultNode.Attributes["href"] != null || nthToDefaultNode.Attributes["id"] != null) 
         {
             if (nthToDefaultNode.Attributes["id"] != null) 
             {
                 nthToDefaultIDRef_ = nthToDefaultNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(nthToDefaultNode);
                 IDManager.SetID(nthToDefaultIDRef_, ob);
             }
             else if (nthToDefaultNode.Attributes["href"] != null)
             {
                 nthToDefaultIDRef_ = nthToDefaultNode.Attributes["href"].Value;
             }
             else
             {
                 nthToDefault_ = new XsdTypePositiveInteger(nthToDefaultNode);
             }
         }
         else
         {
             nthToDefault_ = new XsdTypePositiveInteger(nthToDefaultNode);
         }
     }
     
 
     XmlNode mthToDefaultNode = xmlNode.SelectSingleNode("mthToDefault");
     
     if (mthToDefaultNode != null)
     {
         if (mthToDefaultNode.Attributes["href"] != null || mthToDefaultNode.Attributes["id"] != null) 
         {
             if (mthToDefaultNode.Attributes["id"] != null) 
             {
                 mthToDefaultIDRef_ = mthToDefaultNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(mthToDefaultNode);
                 IDManager.SetID(mthToDefaultIDRef_, ob);
             }
             else if (mthToDefaultNode.Attributes["href"] != null)
             {
                 mthToDefaultIDRef_ = mthToDefaultNode.Attributes["href"].Value;
             }
             else
             {
                 mthToDefault_ = new XsdTypePositiveInteger(mthToDefaultNode);
             }
         }
         else
         {
             mthToDefault_ = new XsdTypePositiveInteger(mthToDefaultNode);
         }
     }
     
 
     XmlNode trancheNode = xmlNode.SelectSingleNode("tranche");
     
     if (trancheNode != null)
     {
         if (trancheNode.Attributes["href"] != null || trancheNode.Attributes["id"] != null) 
         {
             if (trancheNode.Attributes["id"] != null) 
             {
                 trancheIDRef_ = trancheNode.Attributes["id"].Value;
                 Tranche ob = new Tranche(trancheNode);
                 IDManager.SetID(trancheIDRef_, ob);
             }
             else if (trancheNode.Attributes["href"] != null)
             {
                 trancheIDRef_ = trancheNode.Attributes["href"].Value;
             }
             else
             {
                 tranche_ = new Tranche(trancheNode);
             }
         }
         else
         {
             tranche_ = new Tranche(trancheNode);
         }
     }
     
 
 }
        public BasketReferenceInformation(XmlNode xmlNode)
        {
            XmlNodeList basketNameNodeList = xmlNode.SelectNodes("basketName");

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

            foreach (XmlNode item in basketNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        basketNameIDRef = item.Attributes["id"].Name;
                        BasketName ob = BasketName();
                        IDManager.SetID(basketNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        basketNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        basketName = new BasketName(item);
                    }
                }
            }


            XmlNodeList basketIdNodeList = xmlNode.SelectNodes("basketId");

            foreach (XmlNode item in basketIdNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        basketIdIDRef = item.Attributes["id"].Name;
                        List <BasketId> ob = new List <BasketId>();
                        ob.Add(new BasketId(item));
                        IDManager.SetID(basketIdIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        basketIdIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        basketId.Add(new BasketId(item));
                    }
                }
            }


            XmlNodeList referencePoolNodeList = xmlNode.SelectNodes("referencePool");

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

            foreach (XmlNode item in referencePoolNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        referencePoolIDRef = item.Attributes["id"].Name;
                        ReferencePool ob = ReferencePool();
                        IDManager.SetID(referencePoolIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        referencePoolIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        referencePool = new ReferencePool(item);
                    }
                }
            }


            XmlNodeList nthToDefaultNodeList = xmlNode.SelectNodes("nthToDefault");

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

            foreach (XmlNode item in nthToDefaultNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nthToDefaultIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(nthToDefaultIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nthToDefaultIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        nthToDefault = new XsdTypePositiveInteger(item);
                    }
                }
            }


            XmlNodeList mthToDefaultNodeList = xmlNode.SelectNodes("mthToDefault");

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

            foreach (XmlNode item in mthToDefaultNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        mthToDefaultIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(mthToDefaultIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        mthToDefaultIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        mthToDefault = new XsdTypePositiveInteger(item);
                    }
                }
            }


            XmlNodeList trancheNodeList = xmlNode.SelectNodes("tranche");

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

            foreach (XmlNode item in trancheNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        trancheIDRef = item.Attributes["id"].Name;
                        Tranche ob = Tranche();
                        IDManager.SetID(trancheIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        trancheIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        tranche = new Tranche(item);
                    }
                }
            }
        }
        public IndexReferenceInformation(XmlNode xmlNode)
        {
            XmlNode indexNameNode = xmlNode.SelectSingleNode("indexName");

            if (indexNameNode != null)
            {
                if (indexNameNode.Attributes["href"] != null || indexNameNode.Attributes["id"] != null)
                {
                    if (indexNameNode.Attributes["id"] != null)
                    {
                        indexNameIDRef_ = indexNameNode.Attributes["id"].Value;
                        IndexName ob = new IndexName(indexNameNode);
                        IDManager.SetID(indexNameIDRef_, ob);
                    }
                    else if (indexNameNode.Attributes["href"] != null)
                    {
                        indexNameIDRef_ = indexNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexName_ = new IndexName(indexNameNode);
                    }
                }
                else
                {
                    indexName_ = new IndexName(indexNameNode);
                }
            }


            XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");

            if (indexIdNodeList != null)
            {
                this.indexId_ = new List <IndexId>();
                foreach (XmlNode item in indexIdNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            indexIdIDRef_ = item.Attributes["id"].Value;
                            indexId_.Add(new IndexId(item));
                            IDManager.SetID(indexIdIDRef_, indexId_[indexId_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            indexIdIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            indexId_.Add(new IndexId(item));
                        }
                    }
                    else
                    {
                        indexId_.Add(new IndexId(item));
                    }
                }
            }


            XmlNode indexSeriesNode = xmlNode.SelectSingleNode("indexSeries");

            if (indexSeriesNode != null)
            {
                if (indexSeriesNode.Attributes["href"] != null || indexSeriesNode.Attributes["id"] != null)
                {
                    if (indexSeriesNode.Attributes["id"] != null)
                    {
                        indexSeriesIDRef_ = indexSeriesNode.Attributes["id"].Value;
                        XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexSeriesNode);
                        IDManager.SetID(indexSeriesIDRef_, ob);
                    }
                    else if (indexSeriesNode.Attributes["href"] != null)
                    {
                        indexSeriesIDRef_ = indexSeriesNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
                    }
                }
                else
                {
                    indexSeries_ = new XsdTypePositiveInteger(indexSeriesNode);
                }
            }


            XmlNode indexAnnexVersionNode = xmlNode.SelectSingleNode("indexAnnexVersion");

            if (indexAnnexVersionNode != null)
            {
                if (indexAnnexVersionNode.Attributes["href"] != null || indexAnnexVersionNode.Attributes["id"] != null)
                {
                    if (indexAnnexVersionNode.Attributes["id"] != null)
                    {
                        indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["id"].Value;
                        XsdTypePositiveInteger ob = new XsdTypePositiveInteger(indexAnnexVersionNode);
                        IDManager.SetID(indexAnnexVersionIDRef_, ob);
                    }
                    else if (indexAnnexVersionNode.Attributes["href"] != null)
                    {
                        indexAnnexVersionIDRef_ = indexAnnexVersionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
                    }
                }
                else
                {
                    indexAnnexVersion_ = new XsdTypePositiveInteger(indexAnnexVersionNode);
                }
            }


            XmlNode indexAnnexDateNode = xmlNode.SelectSingleNode("indexAnnexDate");

            if (indexAnnexDateNode != null)
            {
                if (indexAnnexDateNode.Attributes["href"] != null || indexAnnexDateNode.Attributes["id"] != null)
                {
                    if (indexAnnexDateNode.Attributes["id"] != null)
                    {
                        indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(indexAnnexDateNode);
                        IDManager.SetID(indexAnnexDateIDRef_, ob);
                    }
                    else if (indexAnnexDateNode.Attributes["href"] != null)
                    {
                        indexAnnexDateIDRef_ = indexAnnexDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
                    }
                }
                else
                {
                    indexAnnexDate_ = new XsdTypeDate(indexAnnexDateNode);
                }
            }


            XmlNode indexAnnexSourceNode = xmlNode.SelectSingleNode("indexAnnexSource");

            if (indexAnnexSourceNode != null)
            {
                if (indexAnnexSourceNode.Attributes["href"] != null || indexAnnexSourceNode.Attributes["id"] != null)
                {
                    if (indexAnnexSourceNode.Attributes["id"] != null)
                    {
                        indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["id"].Value;
                        IndexAnnexSource ob = new IndexAnnexSource(indexAnnexSourceNode);
                        IDManager.SetID(indexAnnexSourceIDRef_, ob);
                    }
                    else if (indexAnnexSourceNode.Attributes["href"] != null)
                    {
                        indexAnnexSourceIDRef_ = indexAnnexSourceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
                    }
                }
                else
                {
                    indexAnnexSource_ = new IndexAnnexSource(indexAnnexSourceNode);
                }
            }


            XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");

            if (excludedReferenceEntityNodeList != null)
            {
                this.excludedReferenceEntity_ = new List <LegalEntity>();
                foreach (XmlNode item in excludedReferenceEntityNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            excludedReferenceEntityIDRef_ = item.Attributes["id"].Value;
                            excludedReferenceEntity_.Add(new LegalEntity(item));
                            IDManager.SetID(excludedReferenceEntityIDRef_, excludedReferenceEntity_[excludedReferenceEntity_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            excludedReferenceEntityIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            excludedReferenceEntity_.Add(new LegalEntity(item));
                        }
                    }
                    else
                    {
                        excludedReferenceEntity_.Add(new LegalEntity(item));
                    }
                }
            }


            XmlNode trancheNode = xmlNode.SelectSingleNode("tranche");

            if (trancheNode != null)
            {
                if (trancheNode.Attributes["href"] != null || trancheNode.Attributes["id"] != null)
                {
                    if (trancheNode.Attributes["id"] != null)
                    {
                        trancheIDRef_ = trancheNode.Attributes["id"].Value;
                        Tranche ob = new Tranche(trancheNode);
                        IDManager.SetID(trancheIDRef_, ob);
                    }
                    else if (trancheNode.Attributes["href"] != null)
                    {
                        trancheIDRef_ = trancheNode.Attributes["href"].Value;
                    }
                    else
                    {
                        tranche_ = new Tranche(trancheNode);
                    }
                }
                else
                {
                    tranche_ = new Tranche(trancheNode);
                }
            }


            XmlNode settledEntityMatrixNode = xmlNode.SelectSingleNode("settledEntityMatrix");

            if (settledEntityMatrixNode != null)
            {
                if (settledEntityMatrixNode.Attributes["href"] != null || settledEntityMatrixNode.Attributes["id"] != null)
                {
                    if (settledEntityMatrixNode.Attributes["id"] != null)
                    {
                        settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["id"].Value;
                        SettledEntityMatrix ob = new SettledEntityMatrix(settledEntityMatrixNode);
                        IDManager.SetID(settledEntityMatrixIDRef_, ob);
                    }
                    else if (settledEntityMatrixNode.Attributes["href"] != null)
                    {
                        settledEntityMatrixIDRef_ = settledEntityMatrixNode.Attributes["href"].Value;
                    }
                    else
                    {
                        settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
                    }
                }
                else
                {
                    settledEntityMatrix_ = new SettledEntityMatrix(settledEntityMatrixNode);
                }
            }
        }
Example #8
0
        public IndexReferenceInformation(XmlNode xmlNode)
        {
            XmlNodeList indexNameNodeList = xmlNode.SelectNodes("indexName");

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

            foreach (XmlNode item in indexNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexNameIDRef = item.Attributes["id"].Name;
                        IndexName ob = IndexName();
                        IDManager.SetID(indexNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexName = new IndexName(item);
                    }
                }
            }


            XmlNodeList indexIdNodeList = xmlNode.SelectNodes("indexId");

            foreach (XmlNode item in indexIdNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexIdIDRef = item.Attributes["id"].Name;
                        List <IndexId> ob = new List <IndexId>();
                        ob.Add(new IndexId(item));
                        IDManager.SetID(indexIdIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexIdIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexId.Add(new IndexId(item));
                    }
                }
            }


            XmlNodeList indexSeriesNodeList = xmlNode.SelectNodes("indexSeries");

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

            foreach (XmlNode item in indexSeriesNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexSeriesIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(indexSeriesIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexSeriesIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexSeries = new XsdTypePositiveInteger(item);
                    }
                }
            }


            XmlNodeList indexAnnexVersionNodeList = xmlNode.SelectNodes("indexAnnexVersion");

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

            foreach (XmlNode item in indexAnnexVersionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexAnnexVersionIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(indexAnnexVersionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexAnnexVersionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexAnnexVersion = new XsdTypePositiveInteger(item);
                    }
                }
            }


            XmlNodeList indexAnnexDateNodeList = xmlNode.SelectNodes("indexAnnexDate");

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

            foreach (XmlNode item in indexAnnexDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexAnnexDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(indexAnnexDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexAnnexDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexAnnexDate = new XsdTypeDate(item);
                    }
                }
            }


            XmlNodeList indexAnnexSourceNodeList = xmlNode.SelectNodes("indexAnnexSource");

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

            foreach (XmlNode item in indexAnnexSourceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexAnnexSourceIDRef = item.Attributes["id"].Name;
                        IndexAnnexSource ob = IndexAnnexSource();
                        IDManager.SetID(indexAnnexSourceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexAnnexSourceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexAnnexSource = new IndexAnnexSource(item);
                    }
                }
            }


            XmlNodeList excludedReferenceEntityNodeList = xmlNode.SelectNodes("excludedReferenceEntity");

            foreach (XmlNode item in excludedReferenceEntityNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        excludedReferenceEntityIDRef = item.Attributes["id"].Name;
                        List <LegalEntity> ob = new List <LegalEntity>();
                        ob.Add(new LegalEntity(item));
                        IDManager.SetID(excludedReferenceEntityIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        excludedReferenceEntityIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        excludedReferenceEntity.Add(new LegalEntity(item));
                    }
                }
            }


            XmlNodeList trancheNodeList = xmlNode.SelectNodes("tranche");

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

            foreach (XmlNode item in trancheNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        trancheIDRef = item.Attributes["id"].Name;
                        Tranche ob = Tranche();
                        IDManager.SetID(trancheIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        trancheIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        tranche = new Tranche(item);
                    }
                }
            }


            XmlNodeList settledEntityMatrixNodeList = xmlNode.SelectNodes("settledEntityMatrix");

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

            foreach (XmlNode item in settledEntityMatrixNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        settledEntityMatrixIDRef = item.Attributes["id"].Name;
                        SettledEntityMatrix ob = SettledEntityMatrix();
                        IDManager.SetID(settledEntityMatrixIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        settledEntityMatrixIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        settledEntityMatrix = new SettledEntityMatrix(item);
                    }
                }
            }
        }