public CreditEventNotice(XmlNode xmlNode)
 {
     XmlNodeList notifyingPartyNodeList = xmlNode.SelectNodes("notifyingParty");
     if (notifyingPartyNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in notifyingPartyNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 notifyingPartyIDRef = item.Attributes["id"].Name;
                 NotifyingParty ob = NotifyingParty();
                 IDManager.SetID(notifyingPartyIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 notifyingPartyIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 notifyingParty = new NotifyingParty(item);
             }
         }
     }
     
 
     XmlNodeList businessCenterNodeList = xmlNode.SelectNodes("businessCenter");
     if (businessCenterNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in businessCenterNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 businessCenterIDRef = item.Attributes["id"].Name;
                 BusinessCenter ob = BusinessCenter();
                 IDManager.SetID(businessCenterIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 businessCenterIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 businessCenter = new BusinessCenter(item);
             }
         }
     }
     
 
     XmlNodeList publiclyAvailableInformationNodeList = xmlNode.SelectNodes("publiclyAvailableInformation");
     if (publiclyAvailableInformationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in publiclyAvailableInformationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 publiclyAvailableInformationIDRef = item.Attributes["id"].Name;
                 PubliclyAvailableInformation ob = PubliclyAvailableInformation();
                 IDManager.SetID(publiclyAvailableInformationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 publiclyAvailableInformationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 publiclyAvailableInformation = new PubliclyAvailableInformation(item);
             }
         }
     }
     
 
 }
 public CreditEventNotice(XmlNode xmlNode)
 {
     XmlNode notifyingPartyNode = xmlNode.SelectSingleNode("notifyingParty");
     
     if (notifyingPartyNode != null)
     {
         if (notifyingPartyNode.Attributes["href"] != null || notifyingPartyNode.Attributes["id"] != null) 
         {
             if (notifyingPartyNode.Attributes["id"] != null) 
             {
                 notifyingPartyIDRef_ = notifyingPartyNode.Attributes["id"].Value;
                 NotifyingParty ob = new NotifyingParty(notifyingPartyNode);
                 IDManager.SetID(notifyingPartyIDRef_, ob);
             }
             else if (notifyingPartyNode.Attributes["href"] != null)
             {
                 notifyingPartyIDRef_ = notifyingPartyNode.Attributes["href"].Value;
             }
             else
             {
                 notifyingParty_ = new NotifyingParty(notifyingPartyNode);
             }
         }
         else
         {
             notifyingParty_ = new NotifyingParty(notifyingPartyNode);
         }
     }
     
 
     XmlNode businessCenterNode = xmlNode.SelectSingleNode("businessCenter");
     
     if (businessCenterNode != null)
     {
         if (businessCenterNode.Attributes["href"] != null || businessCenterNode.Attributes["id"] != null) 
         {
             if (businessCenterNode.Attributes["id"] != null) 
             {
                 businessCenterIDRef_ = businessCenterNode.Attributes["id"].Value;
                 BusinessCenter ob = new BusinessCenter(businessCenterNode);
                 IDManager.SetID(businessCenterIDRef_, ob);
             }
             else if (businessCenterNode.Attributes["href"] != null)
             {
                 businessCenterIDRef_ = businessCenterNode.Attributes["href"].Value;
             }
             else
             {
                 businessCenter_ = new BusinessCenter(businessCenterNode);
             }
         }
         else
         {
             businessCenter_ = new BusinessCenter(businessCenterNode);
         }
     }
     
 
     XmlNode publiclyAvailableInformationNode = xmlNode.SelectSingleNode("publiclyAvailableInformation");
     
     if (publiclyAvailableInformationNode != null)
     {
         if (publiclyAvailableInformationNode.Attributes["href"] != null || publiclyAvailableInformationNode.Attributes["id"] != null) 
         {
             if (publiclyAvailableInformationNode.Attributes["id"] != null) 
             {
                 publiclyAvailableInformationIDRef_ = publiclyAvailableInformationNode.Attributes["id"].Value;
                 PubliclyAvailableInformation ob = new PubliclyAvailableInformation(publiclyAvailableInformationNode);
                 IDManager.SetID(publiclyAvailableInformationIDRef_, ob);
             }
             else if (publiclyAvailableInformationNode.Attributes["href"] != null)
             {
                 publiclyAvailableInformationIDRef_ = publiclyAvailableInformationNode.Attributes["href"].Value;
             }
             else
             {
                 publiclyAvailableInformation_ = new PubliclyAvailableInformation(publiclyAvailableInformationNode);
             }
         }
         else
         {
             publiclyAvailableInformation_ = new PubliclyAvailableInformation(publiclyAvailableInformationNode);
         }
     }
     
 
 }
        public CreditEventNotice(XmlNode xmlNode)
        {
            XmlNodeList notifyingPartyNodeList = xmlNode.SelectNodes("notifyingParty");

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

            foreach (XmlNode item in notifyingPartyNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        notifyingPartyIDRef = item.Attributes["id"].Name;
                        NotifyingParty ob = NotifyingParty();
                        IDManager.SetID(notifyingPartyIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        notifyingPartyIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        notifyingParty = new NotifyingParty(item);
                    }
                }
            }


            XmlNodeList businessCenterNodeList = xmlNode.SelectNodes("businessCenter");

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

            foreach (XmlNode item in businessCenterNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        businessCenterIDRef = item.Attributes["id"].Name;
                        BusinessCenter ob = BusinessCenter();
                        IDManager.SetID(businessCenterIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        businessCenterIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        businessCenter = new BusinessCenter(item);
                    }
                }
            }


            XmlNodeList publiclyAvailableInformationNodeList = xmlNode.SelectNodes("publiclyAvailableInformation");

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

            foreach (XmlNode item in publiclyAvailableInformationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        publiclyAvailableInformationIDRef = item.Attributes["id"].Name;
                        PubliclyAvailableInformation ob = PubliclyAvailableInformation();
                        IDManager.SetID(publiclyAvailableInformationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        publiclyAvailableInformationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        publiclyAvailableInformation = new PubliclyAvailableInformation(item);
                    }
                }
            }
        }
Esempio n. 4
0
        public CreditEventNotice(XmlNode xmlNode)
        {
            XmlNode notifyingPartyNode = xmlNode.SelectSingleNode("notifyingParty");

            if (notifyingPartyNode != null)
            {
                if (notifyingPartyNode.Attributes["href"] != null || notifyingPartyNode.Attributes["id"] != null)
                {
                    if (notifyingPartyNode.Attributes["id"] != null)
                    {
                        notifyingPartyIDRef_ = notifyingPartyNode.Attributes["id"].Value;
                        NotifyingParty ob = new NotifyingParty(notifyingPartyNode);
                        IDManager.SetID(notifyingPartyIDRef_, ob);
                    }
                    else if (notifyingPartyNode.Attributes["href"] != null)
                    {
                        notifyingPartyIDRef_ = notifyingPartyNode.Attributes["href"].Value;
                    }
                    else
                    {
                        notifyingParty_ = new NotifyingParty(notifyingPartyNode);
                    }
                }
                else
                {
                    notifyingParty_ = new NotifyingParty(notifyingPartyNode);
                }
            }


            XmlNode businessCenterNode = xmlNode.SelectSingleNode("businessCenter");

            if (businessCenterNode != null)
            {
                if (businessCenterNode.Attributes["href"] != null || businessCenterNode.Attributes["id"] != null)
                {
                    if (businessCenterNode.Attributes["id"] != null)
                    {
                        businessCenterIDRef_ = businessCenterNode.Attributes["id"].Value;
                        BusinessCenter ob = new BusinessCenter(businessCenterNode);
                        IDManager.SetID(businessCenterIDRef_, ob);
                    }
                    else if (businessCenterNode.Attributes["href"] != null)
                    {
                        businessCenterIDRef_ = businessCenterNode.Attributes["href"].Value;
                    }
                    else
                    {
                        businessCenter_ = new BusinessCenter(businessCenterNode);
                    }
                }
                else
                {
                    businessCenter_ = new BusinessCenter(businessCenterNode);
                }
            }


            XmlNode publiclyAvailableInformationNode = xmlNode.SelectSingleNode("publiclyAvailableInformation");

            if (publiclyAvailableInformationNode != null)
            {
                if (publiclyAvailableInformationNode.Attributes["href"] != null || publiclyAvailableInformationNode.Attributes["id"] != null)
                {
                    if (publiclyAvailableInformationNode.Attributes["id"] != null)
                    {
                        publiclyAvailableInformationIDRef_ = publiclyAvailableInformationNode.Attributes["id"].Value;
                        PubliclyAvailableInformation ob = new PubliclyAvailableInformation(publiclyAvailableInformationNode);
                        IDManager.SetID(publiclyAvailableInformationIDRef_, ob);
                    }
                    else if (publiclyAvailableInformationNode.Attributes["href"] != null)
                    {
                        publiclyAvailableInformationIDRef_ = publiclyAvailableInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        publiclyAvailableInformation_ = new PubliclyAvailableInformation(publiclyAvailableInformationNode);
                    }
                }
                else
                {
                    publiclyAvailableInformation_ = new PubliclyAvailableInformation(publiclyAvailableInformationNode);
                }
            }
        }