public CreditEventNotificationRetracted(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList creditEventNoticeNodeList = xmlNode.SelectNodes("creditEventNotice");
     if (creditEventNoticeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in creditEventNoticeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 creditEventNoticeIDRef = item.Attributes["id"].Name;
                 CreditEventNoticeDocument ob = CreditEventNoticeDocument();
                 IDManager.SetID(creditEventNoticeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 creditEventNoticeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 creditEventNotice = new CreditEventNoticeDocument(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));
             }
         }
     }
     
 
 }
Exemple #2
0
        public CreditEventNotification(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList creditEventNoticeNodeList = xmlNode.SelectNodes("creditEventNotice");

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

            foreach (XmlNode item in creditEventNoticeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        creditEventNoticeIDRef = item.Attributes["id"].Name;
                        CreditEventNoticeDocument ob = CreditEventNoticeDocument();
                        IDManager.SetID(creditEventNoticeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        creditEventNoticeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        creditEventNotice = new CreditEventNoticeDocument(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));
                    }
                }
            }
        }
Exemple #3
0
        public CreditEventNotification(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode creditEventNoticeNode = xmlNode.SelectSingleNode("creditEventNotice");

            if (creditEventNoticeNode != null)
            {
                if (creditEventNoticeNode.Attributes["href"] != null || creditEventNoticeNode.Attributes["id"] != null)
                {
                    if (creditEventNoticeNode.Attributes["id"] != null)
                    {
                        creditEventNoticeIDRef_ = creditEventNoticeNode.Attributes["id"].Value;
                        CreditEventNoticeDocument ob = new CreditEventNoticeDocument(creditEventNoticeNode);
                        IDManager.SetID(creditEventNoticeIDRef_, ob);
                    }
                    else if (creditEventNoticeNode.Attributes["href"] != null)
                    {
                        creditEventNoticeIDRef_ = creditEventNoticeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        creditEventNotice_ = new CreditEventNoticeDocument(creditEventNoticeNode);
                    }
                }
                else
                {
                    creditEventNotice_ = new CreditEventNoticeDocument(creditEventNoticeNode);
                }
            }


            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));
                    }
                }
            }
        }
 public CreditEventNotificationRetracted(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode creditEventNoticeNode = xmlNode.SelectSingleNode("creditEventNotice");
     
     if (creditEventNoticeNode != null)
     {
         if (creditEventNoticeNode.Attributes["href"] != null || creditEventNoticeNode.Attributes["id"] != null) 
         {
             if (creditEventNoticeNode.Attributes["id"] != null) 
             {
                 creditEventNoticeIDRef_ = creditEventNoticeNode.Attributes["id"].Value;
                 CreditEventNoticeDocument ob = new CreditEventNoticeDocument(creditEventNoticeNode);
                 IDManager.SetID(creditEventNoticeIDRef_, ob);
             }
             else if (creditEventNoticeNode.Attributes["href"] != null)
             {
                 creditEventNoticeIDRef_ = creditEventNoticeNode.Attributes["href"].Value;
             }
             else
             {
                 creditEventNotice_ = new CreditEventNoticeDocument(creditEventNoticeNode);
             }
         }
         else
         {
             creditEventNotice_ = new CreditEventNoticeDocument(creditEventNoticeNode);
         }
     }
     
 
     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));
             }
         }
     }
     
 
 }