public RequestRetransmission(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList portfolioReferenceNodeList = xmlNode.SelectNodes("portfolioReference");
     if (portfolioReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in portfolioReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 portfolioReferenceIDRef = item.Attributes["id"].Name;
                 PortfolioConstituentReference ob = PortfolioConstituentReference();
                 IDManager.SetID(portfolioReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 portfolioReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 portfolioReference = new PortfolioConstituentReference(item);
             }
         }
     }
     
 
     XmlNodeList reportIdentificationNodeList = xmlNode.SelectNodes("reportIdentification");
     if (reportIdentificationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in reportIdentificationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 reportIdentificationIDRef = item.Attributes["id"].Name;
                 ReportSectionIdentification ob = ReportSectionIdentification();
                 IDManager.SetID(reportIdentificationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 reportIdentificationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 reportIdentification = new ReportSectionIdentification(item);
             }
         }
     }
     
 
     XmlNodeList partyNodeList = xmlNode.SelectNodes("party");
     
     foreach (XmlNode item in partyNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 partyIDRef = item.Attributes["id"].Name;
                 List<Party> ob = new List<Party>();
                 ob.Add(new Party(item));
                 IDManager.SetID(partyIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 partyIDRef = item.Attributes["href"].Name;
             }
             else
             {
             party.Add(new Party(item));
             }
         }
     }
     
 
     XmlNodeList accountNodeList = xmlNode.SelectNodes("account");
     
     foreach (XmlNode item in accountNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 accountIDRef = item.Attributes["id"].Name;
                 List<Account> ob = new List<Account>();
                 ob.Add(new Account(item));
                 IDManager.SetID(accountIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 accountIDRef = item.Attributes["href"].Name;
             }
             else
             {
             account.Add(new Account(item));
             }
         }
     }
     
 
 }
        public RequestRetransmission(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode portfolioReferenceNode = xmlNode.SelectSingleNode("portfolioReference");

            if (portfolioReferenceNode != null)
            {
                if (portfolioReferenceNode.Attributes["href"] != null || portfolioReferenceNode.Attributes["id"] != null)
                {
                    if (portfolioReferenceNode.Attributes["id"] != null)
                    {
                        portfolioReferenceIDRef_ = portfolioReferenceNode.Attributes["id"].Value;
                        PortfolioConstituentReference ob = new PortfolioConstituentReference(portfolioReferenceNode);
                        IDManager.SetID(portfolioReferenceIDRef_, ob);
                    }
                    else if (portfolioReferenceNode.Attributes["href"] != null)
                    {
                        portfolioReferenceIDRef_ = portfolioReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        portfolioReference_ = new PortfolioConstituentReference(portfolioReferenceNode);
                    }
                }
                else
                {
                    portfolioReference_ = new PortfolioConstituentReference(portfolioReferenceNode);
                }
            }


            XmlNode reportIdentificationNode = xmlNode.SelectSingleNode("reportIdentification");

            if (reportIdentificationNode != null)
            {
                if (reportIdentificationNode.Attributes["href"] != null || reportIdentificationNode.Attributes["id"] != null)
                {
                    if (reportIdentificationNode.Attributes["id"] != null)
                    {
                        reportIdentificationIDRef_ = reportIdentificationNode.Attributes["id"].Value;
                        ReportSectionIdentification ob = new ReportSectionIdentification(reportIdentificationNode);
                        IDManager.SetID(reportIdentificationIDRef_, ob);
                    }
                    else if (reportIdentificationNode.Attributes["href"] != null)
                    {
                        reportIdentificationIDRef_ = reportIdentificationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        reportIdentification_ = new ReportSectionIdentification(reportIdentificationNode);
                    }
                }
                else
                {
                    reportIdentification_ = new ReportSectionIdentification(reportIdentificationNode);
                }
            }


            XmlNodeList partyNodeList = xmlNode.SelectNodes("party");

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


            XmlNodeList accountNodeList = xmlNode.SelectNodes("account");

            if (accountNodeList != null)
            {
                this.account_ = new List <Account>();
                foreach (XmlNode item in accountNodeList)
                {
                    if (item.Attributes["href"] != null || item.Attributes["id"] != null)
                    {
                        if (item.Attributes["id"] != null)
                        {
                            accountIDRef_ = item.Attributes["id"].Value;
                            account_.Add(new Account(item));
                            IDManager.SetID(accountIDRef_, account_[account_.Count - 1]);
                        }
                        else if (item.Attributes["href"] != null)
                        {
                            accountIDRef_ = item.Attributes["href"].Value;
                        }
                        else
                        {
                            account_.Add(new Account(item));
                        }
                    }
                    else
                    {
                        account_.Add(new Account(item));
                    }
                }
            }
        }
 public RequestRetransmission(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode portfolioReferenceNode = xmlNode.SelectSingleNode("portfolioReference");
     
     if (portfolioReferenceNode != null)
     {
         if (portfolioReferenceNode.Attributes["href"] != null || portfolioReferenceNode.Attributes["id"] != null) 
         {
             if (portfolioReferenceNode.Attributes["id"] != null) 
             {
                 portfolioReferenceIDRef_ = portfolioReferenceNode.Attributes["id"].Value;
                 PortfolioConstituentReference ob = new PortfolioConstituentReference(portfolioReferenceNode);
                 IDManager.SetID(portfolioReferenceIDRef_, ob);
             }
             else if (portfolioReferenceNode.Attributes["href"] != null)
             {
                 portfolioReferenceIDRef_ = portfolioReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 portfolioReference_ = new PortfolioConstituentReference(portfolioReferenceNode);
             }
         }
         else
         {
             portfolioReference_ = new PortfolioConstituentReference(portfolioReferenceNode);
         }
     }
     
 
     XmlNode reportIdentificationNode = xmlNode.SelectSingleNode("reportIdentification");
     
     if (reportIdentificationNode != null)
     {
         if (reportIdentificationNode.Attributes["href"] != null || reportIdentificationNode.Attributes["id"] != null) 
         {
             if (reportIdentificationNode.Attributes["id"] != null) 
             {
                 reportIdentificationIDRef_ = reportIdentificationNode.Attributes["id"].Value;
                 ReportSectionIdentification ob = new ReportSectionIdentification(reportIdentificationNode);
                 IDManager.SetID(reportIdentificationIDRef_, ob);
             }
             else if (reportIdentificationNode.Attributes["href"] != null)
             {
                 reportIdentificationIDRef_ = reportIdentificationNode.Attributes["href"].Value;
             }
             else
             {
                 reportIdentification_ = new ReportSectionIdentification(reportIdentificationNode);
             }
         }
         else
         {
             reportIdentification_ = new ReportSectionIdentification(reportIdentificationNode);
         }
     }
     
 
     XmlNodeList partyNodeList = xmlNode.SelectNodes("party");
     
     if (partyNodeList != null)
     {
         this.party_ = new List<Party>();
         foreach (XmlNode item in partyNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     partyIDRef_ = item.Attributes["id"].Value;
                     party_.Add(new Party(item));
                     IDManager.SetID(partyIDRef_, party_[party_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     partyIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 party_.Add(new Party(item));
                 }
             }
             else
             {
                 party_.Add(new Party(item));
             }
         }
     }
     
 
     XmlNodeList accountNodeList = xmlNode.SelectNodes("account");
     
     if (accountNodeList != null)
     {
         this.account_ = new List<Account>();
         foreach (XmlNode item in accountNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     accountIDRef_ = item.Attributes["id"].Value;
                     account_.Add(new Account(item));
                     IDManager.SetID(accountIDRef_, account_[account_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     accountIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 account_.Add(new Account(item));
                 }
             }
             else
             {
                 account_.Add(new Account(item));
             }
         }
     }
     
 
 }
        public RequestRetransmission(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList portfolioReferenceNodeList = xmlNode.SelectNodes("portfolioReference");

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

            foreach (XmlNode item in portfolioReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        portfolioReferenceIDRef = item.Attributes["id"].Name;
                        PortfolioConstituentReference ob = PortfolioConstituentReference();
                        IDManager.SetID(portfolioReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        portfolioReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        portfolioReference = new PortfolioConstituentReference(item);
                    }
                }
            }


            XmlNodeList reportIdentificationNodeList = xmlNode.SelectNodes("reportIdentification");

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

            foreach (XmlNode item in reportIdentificationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        reportIdentificationIDRef = item.Attributes["id"].Name;
                        ReportSectionIdentification ob = ReportSectionIdentification();
                        IDManager.SetID(reportIdentificationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        reportIdentificationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        reportIdentification = new ReportSectionIdentification(item);
                    }
                }
            }


            XmlNodeList partyNodeList = xmlNode.SelectNodes("party");

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


            XmlNodeList accountNodeList = xmlNode.SelectNodes("account");

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