public IssueInformation(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode swapInfoNode = xmlNode.SelectSingleNode("swapInfo");
     
     if (swapInfoNode != null)
     {
         if (swapInfoNode.Attributes["href"] != null || swapInfoNode.Attributes["id"] != null) 
         {
             if (swapInfoNode.Attributes["id"] != null) 
             {
                 swapInfoIDRef_ = swapInfoNode.Attributes["id"].Value;
                 SwapInfo ob = new SwapInfo(swapInfoNode);
                 IDManager.SetID(swapInfoIDRef_, ob);
             }
             else if (swapInfoNode.Attributes["href"] != null)
             {
                 swapInfoIDRef_ = swapInfoNode.Attributes["href"].Value;
             }
             else
             {
                 swapInfo_ = new SwapInfo(swapInfoNode);
             }
         }
         else
         {
             swapInfo_ = new SwapInfo(swapInfoNode);
         }
     }
     
 
     XmlNode noteInfoNode = xmlNode.SelectSingleNode("noteInfo");
     
     if (noteInfoNode != null)
     {
         if (noteInfoNode.Attributes["href"] != null || noteInfoNode.Attributes["id"] != null) 
         {
             if (noteInfoNode.Attributes["id"] != null) 
             {
                 noteInfoIDRef_ = noteInfoNode.Attributes["id"].Value;
                 NoteInfo ob = new NoteInfo(noteInfoNode);
                 IDManager.SetID(noteInfoIDRef_, ob);
             }
             else if (noteInfoNode.Attributes["href"] != null)
             {
                 noteInfoIDRef_ = noteInfoNode.Attributes["href"].Value;
             }
             else
             {
                 noteInfo_ = new NoteInfo(noteInfoNode);
             }
         }
         else
         {
             noteInfo_ = new NoteInfo(noteInfoNode);
         }
     }
     
 
     XmlNode securitiesInfoNode = xmlNode.SelectSingleNode("securitiesInfo");
     
     if (securitiesInfoNode != null)
     {
         if (securitiesInfoNode.Attributes["href"] != null || securitiesInfoNode.Attributes["id"] != null) 
         {
             if (securitiesInfoNode.Attributes["id"] != null) 
             {
                 securitiesInfoIDRef_ = securitiesInfoNode.Attributes["id"].Value;
                 SecuritiesInfo ob = new SecuritiesInfo(securitiesInfoNode);
                 IDManager.SetID(securitiesInfoIDRef_, ob);
             }
             else if (securitiesInfoNode.Attributes["href"] != null)
             {
                 securitiesInfoIDRef_ = securitiesInfoNode.Attributes["href"].Value;
             }
             else
             {
                 securitiesInfo_ = new SecuritiesInfo(securitiesInfoNode);
             }
         }
         else
         {
             securitiesInfo_ = new SecuritiesInfo(securitiesInfoNode);
         }
     }
     
 
 }
Exemple #2
0
        public IssueInformation(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode swapInfoNode = xmlNode.SelectSingleNode("swapInfo");

            if (swapInfoNode != null)
            {
                if (swapInfoNode.Attributes["href"] != null || swapInfoNode.Attributes["id"] != null)
                {
                    if (swapInfoNode.Attributes["id"] != null)
                    {
                        swapInfoIDRef_ = swapInfoNode.Attributes["id"].Value;
                        SwapInfo ob = new SwapInfo(swapInfoNode);
                        IDManager.SetID(swapInfoIDRef_, ob);
                    }
                    else if (swapInfoNode.Attributes["href"] != null)
                    {
                        swapInfoIDRef_ = swapInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        swapInfo_ = new SwapInfo(swapInfoNode);
                    }
                }
                else
                {
                    swapInfo_ = new SwapInfo(swapInfoNode);
                }
            }


            XmlNode noteInfoNode = xmlNode.SelectSingleNode("noteInfo");

            if (noteInfoNode != null)
            {
                if (noteInfoNode.Attributes["href"] != null || noteInfoNode.Attributes["id"] != null)
                {
                    if (noteInfoNode.Attributes["id"] != null)
                    {
                        noteInfoIDRef_ = noteInfoNode.Attributes["id"].Value;
                        NoteInfo ob = new NoteInfo(noteInfoNode);
                        IDManager.SetID(noteInfoIDRef_, ob);
                    }
                    else if (noteInfoNode.Attributes["href"] != null)
                    {
                        noteInfoIDRef_ = noteInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        noteInfo_ = new NoteInfo(noteInfoNode);
                    }
                }
                else
                {
                    noteInfo_ = new NoteInfo(noteInfoNode);
                }
            }


            XmlNode securitiesInfoNode = xmlNode.SelectSingleNode("securitiesInfo");

            if (securitiesInfoNode != null)
            {
                if (securitiesInfoNode.Attributes["href"] != null || securitiesInfoNode.Attributes["id"] != null)
                {
                    if (securitiesInfoNode.Attributes["id"] != null)
                    {
                        securitiesInfoIDRef_ = securitiesInfoNode.Attributes["id"].Value;
                        SecuritiesInfo ob = new SecuritiesInfo(securitiesInfoNode);
                        IDManager.SetID(securitiesInfoIDRef_, ob);
                    }
                    else if (securitiesInfoNode.Attributes["href"] != null)
                    {
                        securitiesInfoIDRef_ = securitiesInfoNode.Attributes["href"].Value;
                    }
                    else
                    {
                        securitiesInfo_ = new SecuritiesInfo(securitiesInfoNode);
                    }
                }
                else
                {
                    securitiesInfo_ = new SecuritiesInfo(securitiesInfoNode);
                }
            }
        }