public TradeChangeAdviceRetracted(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList tradeIdentifierNodeList = xmlNode.SelectNodes("tradeIdentifier");
     
     foreach (XmlNode item in tradeIdentifierNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 tradeIdentifierIDRef = item.Attributes["id"].Name;
                 List<PartyTradeIdentifier> ob = new List<PartyTradeIdentifier>();
                 ob.Add(new PartyTradeIdentifier(item));
                 IDManager.SetID(tradeIdentifierIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 tradeIdentifierIDRef = item.Attributes["href"].Name;
             }
             else
             {
             tradeIdentifier.Add(new PartyTradeIdentifier(item));
             }
         }
     }
     
 
     XmlNodeList changeNodeList = xmlNode.SelectNodes("change");
     if (changeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in changeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 changeIDRef = item.Attributes["id"].Name;
                 TradeChangeContent ob = TradeChangeContent();
                 IDManager.SetID(changeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 changeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 change = new TradeChangeContent(item);
             }
         }
     }
     
 
     XmlNodeList paymentDetailsNodeList = xmlNode.SelectNodes("paymentDetails");
     
     foreach (XmlNode item in paymentDetailsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 paymentDetailsIDRef = item.Attributes["id"].Name;
                 List<PaymentDetails> ob = new List<PaymentDetails>();
                 ob.Add(new PaymentDetails(item));
                 IDManager.SetID(paymentDetailsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 paymentDetailsIDRef = item.Attributes["href"].Name;
             }
             else
             {
             paymentDetails.Add(new PaymentDetails(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 TradeChangeAdviceRetracted(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList tradeIdentifierNodeList = xmlNode.SelectNodes("tradeIdentifier");

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


            XmlNodeList changeNodeList = xmlNode.SelectNodes("change");

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

            foreach (XmlNode item in changeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        changeIDRef = item.Attributes["id"].Name;
                        TradeChangeContent ob = TradeChangeContent();
                        IDManager.SetID(changeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        changeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        change = new TradeChangeContent(item);
                    }
                }
            }


            XmlNodeList paymentDetailsNodeList = xmlNode.SelectNodes("paymentDetails");

            foreach (XmlNode item in paymentDetailsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        paymentDetailsIDRef = item.Attributes["id"].Name;
                        List <PaymentDetails> ob = new List <PaymentDetails>();
                        ob.Add(new PaymentDetails(item));
                        IDManager.SetID(paymentDetailsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        paymentDetailsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        paymentDetails.Add(new PaymentDetails(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));
                    }
                }
            }
        }
Beispiel #3
0
        public TradeChangeAdvice(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode changeNode = xmlNode.SelectSingleNode("change");

            if (changeNode != null)
            {
                if (changeNode.Attributes["href"] != null || changeNode.Attributes["id"] != null)
                {
                    if (changeNode.Attributes["id"] != null)
                    {
                        changeIDRef_ = changeNode.Attributes["id"].Value;
                        TradeChangeContent ob = new TradeChangeContent(changeNode);
                        IDManager.SetID(changeIDRef_, ob);
                    }
                    else if (changeNode.Attributes["href"] != null)
                    {
                        changeIDRef_ = changeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        change_ = new TradeChangeContent(changeNode);
                    }
                }
                else
                {
                    change_ = new TradeChangeContent(changeNode);
                }
            }


            XmlNodeList quoteNodeList = xmlNode.SelectNodes("quote");

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


            XmlNodeList paymentDetailsNodeList = xmlNode.SelectNodes("paymentDetails");

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


            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 TradeChangeAdviceRetracted(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList tradeIdentifierNodeList = xmlNode.SelectNodes("tradeIdentifier");
     
     if (tradeIdentifierNodeList != null)
     {
         this.tradeIdentifier_ = new List<PartyTradeIdentifier>();
         foreach (XmlNode item in tradeIdentifierNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     tradeIdentifierIDRef_ = item.Attributes["id"].Value;
                     tradeIdentifier_.Add(new PartyTradeIdentifier(item));
                     IDManager.SetID(tradeIdentifierIDRef_, tradeIdentifier_[tradeIdentifier_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     tradeIdentifierIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 tradeIdentifier_.Add(new PartyTradeIdentifier(item));
                 }
             }
             else
             {
                 tradeIdentifier_.Add(new PartyTradeIdentifier(item));
             }
         }
     }
     
 
     XmlNode changeNode = xmlNode.SelectSingleNode("change");
     
     if (changeNode != null)
     {
         if (changeNode.Attributes["href"] != null || changeNode.Attributes["id"] != null) 
         {
             if (changeNode.Attributes["id"] != null) 
             {
                 changeIDRef_ = changeNode.Attributes["id"].Value;
                 TradeChangeContent ob = new TradeChangeContent(changeNode);
                 IDManager.SetID(changeIDRef_, ob);
             }
             else if (changeNode.Attributes["href"] != null)
             {
                 changeIDRef_ = changeNode.Attributes["href"].Value;
             }
             else
             {
                 change_ = new TradeChangeContent(changeNode);
             }
         }
         else
         {
             change_ = new TradeChangeContent(changeNode);
         }
     }
     
 
     XmlNodeList paymentDetailsNodeList = xmlNode.SelectNodes("paymentDetails");
     
     if (paymentDetailsNodeList != null)
     {
         this.paymentDetails_ = new List<PaymentDetails>();
         foreach (XmlNode item in paymentDetailsNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     paymentDetailsIDRef_ = item.Attributes["id"].Value;
                     paymentDetails_.Add(new PaymentDetails(item));
                     IDManager.SetID(paymentDetailsIDRef_, paymentDetails_[paymentDetails_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     paymentDetailsIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 paymentDetails_.Add(new PaymentDetails(item));
                 }
             }
             else
             {
                 paymentDetails_.Add(new PaymentDetails(item));
             }
         }
     }
     
 
     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 TradeChangeAdvice(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode changeNode = xmlNode.SelectSingleNode("change");
     
     if (changeNode != null)
     {
         if (changeNode.Attributes["href"] != null || changeNode.Attributes["id"] != null) 
         {
             if (changeNode.Attributes["id"] != null) 
             {
                 changeIDRef_ = changeNode.Attributes["id"].Value;
                 TradeChangeContent ob = new TradeChangeContent(changeNode);
                 IDManager.SetID(changeIDRef_, ob);
             }
             else if (changeNode.Attributes["href"] != null)
             {
                 changeIDRef_ = changeNode.Attributes["href"].Value;
             }
             else
             {
                 change_ = new TradeChangeContent(changeNode);
             }
         }
         else
         {
             change_ = new TradeChangeContent(changeNode);
         }
     }
     
 
     XmlNodeList quoteNodeList = xmlNode.SelectNodes("quote");
     
     if (quoteNodeList != null)
     {
         this.quote_ = new List<BasicQuotation>();
         foreach (XmlNode item in quoteNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     quoteIDRef_ = item.Attributes["id"].Value;
                     quote_.Add(new BasicQuotation(item));
                     IDManager.SetID(quoteIDRef_, quote_[quote_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     quoteIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 quote_.Add(new BasicQuotation(item));
                 }
             }
             else
             {
                 quote_.Add(new BasicQuotation(item));
             }
         }
     }
     
 
     XmlNodeList paymentDetailsNodeList = xmlNode.SelectNodes("paymentDetails");
     
     if (paymentDetailsNodeList != null)
     {
         this.paymentDetails_ = new List<PaymentDetails>();
         foreach (XmlNode item in paymentDetailsNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     paymentDetailsIDRef_ = item.Attributes["id"].Value;
                     paymentDetails_.Add(new PaymentDetails(item));
                     IDManager.SetID(paymentDetailsIDRef_, paymentDetails_[paymentDetails_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     paymentDetailsIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 paymentDetails_.Add(new PaymentDetails(item));
                 }
             }
             else
             {
                 paymentDetails_.Add(new PaymentDetails(item));
             }
         }
     }
     
 
     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));
             }
         }
     }
     
 
 }
Beispiel #6
0
        public TradeChangeAdviceRetracted(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList tradeIdentifierNodeList = xmlNode.SelectNodes("tradeIdentifier");

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


            XmlNode changeNode = xmlNode.SelectSingleNode("change");

            if (changeNode != null)
            {
                if (changeNode.Attributes["href"] != null || changeNode.Attributes["id"] != null)
                {
                    if (changeNode.Attributes["id"] != null)
                    {
                        changeIDRef_ = changeNode.Attributes["id"].Value;
                        TradeChangeContent ob = new TradeChangeContent(changeNode);
                        IDManager.SetID(changeIDRef_, ob);
                    }
                    else if (changeNode.Attributes["href"] != null)
                    {
                        changeIDRef_ = changeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        change_ = new TradeChangeContent(changeNode);
                    }
                }
                else
                {
                    change_ = new TradeChangeContent(changeNode);
                }
            }


            XmlNodeList paymentDetailsNodeList = xmlNode.SelectNodes("paymentDetails");

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


            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));
                    }
                }
            }
        }