public SettlementInstruction(XmlNode xmlNode)
        {
            XmlNodeList settlementMethodNodeList = xmlNode.SelectNodes("settlementMethod");

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

            foreach (XmlNode item in settlementMethodNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        settlementMethodIDRef = item.Attributes["id"].Name;
                        SettlementMethod ob = SettlementMethod();
                        IDManager.SetID(settlementMethodIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        settlementMethodIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        settlementMethod = new SettlementMethod(item);
                    }
                }
            }


            XmlNodeList correspondentInformationNodeList = xmlNode.SelectNodes("correspondentInformation");

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

            foreach (XmlNode item in correspondentInformationNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        correspondentInformationIDRef = item.Attributes["id"].Name;
                        CorrespondentInformation ob = CorrespondentInformation();
                        IDManager.SetID(correspondentInformationIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        correspondentInformationIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        correspondentInformation = new CorrespondentInformation(item);
                    }
                }
            }


            XmlNodeList intermediaryInformationNodeList = xmlNode.SelectNodes("intermediaryInformation");

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


            XmlNodeList beneficiaryBankNodeList = xmlNode.SelectNodes("beneficiaryBank");

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

            foreach (XmlNode item in beneficiaryBankNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        beneficiaryBankIDRef = item.Attributes["id"].Name;
                        Beneficiary ob = Beneficiary();
                        IDManager.SetID(beneficiaryBankIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        beneficiaryBankIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        beneficiaryBank = new Beneficiary(item);
                    }
                }
            }


            XmlNodeList beneficiaryNodeList = xmlNode.SelectNodes("beneficiary");

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

            foreach (XmlNode item in beneficiaryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        beneficiaryIDRef = item.Attributes["id"].Name;
                        Beneficiary ob = Beneficiary();
                        IDManager.SetID(beneficiaryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        beneficiaryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        beneficiary = new Beneficiary(item);
                    }
                }
            }


            XmlNodeList depositoryPartyReferenceNodeList = xmlNode.SelectNodes("depositoryPartyReference");

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

            foreach (XmlNode item in depositoryPartyReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        depositoryPartyReferenceIDRef = item.Attributes["id"].Name;
                        PartyReference ob = PartyReference();
                        IDManager.SetID(depositoryPartyReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        depositoryPartyReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        depositoryPartyReference = new PartyReference(item);
                    }
                }
            }


            XmlNodeList splitSettlementNodeList = xmlNode.SelectNodes("splitSettlement");

            foreach (XmlNode item in splitSettlementNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        splitSettlementIDRef = item.Attributes["id"].Name;
                        List <SplitSettlement> ob = new List <SplitSettlement>();
                        ob.Add(new SplitSettlement(item));
                        IDManager.SetID(splitSettlementIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        splitSettlementIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        splitSettlement.Add(new SplitSettlement(item));
                    }
                }
            }
        }
 public SettlementInstruction(XmlNode xmlNode)
 {
     XmlNode settlementMethodNode = xmlNode.SelectSingleNode("settlementMethod");
     
     if (settlementMethodNode != null)
     {
         if (settlementMethodNode.Attributes["href"] != null || settlementMethodNode.Attributes["id"] != null) 
         {
             if (settlementMethodNode.Attributes["id"] != null) 
             {
                 settlementMethodIDRef_ = settlementMethodNode.Attributes["id"].Value;
                 SettlementMethod ob = new SettlementMethod(settlementMethodNode);
                 IDManager.SetID(settlementMethodIDRef_, ob);
             }
             else if (settlementMethodNode.Attributes["href"] != null)
             {
                 settlementMethodIDRef_ = settlementMethodNode.Attributes["href"].Value;
             }
             else
             {
                 settlementMethod_ = new SettlementMethod(settlementMethodNode);
             }
         }
         else
         {
             settlementMethod_ = new SettlementMethod(settlementMethodNode);
         }
     }
     
 
     XmlNode correspondentInformationNode = xmlNode.SelectSingleNode("correspondentInformation");
     
     if (correspondentInformationNode != null)
     {
         if (correspondentInformationNode.Attributes["href"] != null || correspondentInformationNode.Attributes["id"] != null) 
         {
             if (correspondentInformationNode.Attributes["id"] != null) 
             {
                 correspondentInformationIDRef_ = correspondentInformationNode.Attributes["id"].Value;
                 CorrespondentInformation ob = new CorrespondentInformation(correspondentInformationNode);
                 IDManager.SetID(correspondentInformationIDRef_, ob);
             }
             else if (correspondentInformationNode.Attributes["href"] != null)
             {
                 correspondentInformationIDRef_ = correspondentInformationNode.Attributes["href"].Value;
             }
             else
             {
                 correspondentInformation_ = new CorrespondentInformation(correspondentInformationNode);
             }
         }
         else
         {
             correspondentInformation_ = new CorrespondentInformation(correspondentInformationNode);
         }
     }
     
 
     XmlNodeList intermediaryInformationNodeList = xmlNode.SelectNodes("intermediaryInformation");
     
     if (intermediaryInformationNodeList != null)
     {
         this.intermediaryInformation_ = new List<IntermediaryInformation>();
         foreach (XmlNode item in intermediaryInformationNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     intermediaryInformationIDRef_ = item.Attributes["id"].Value;
                     intermediaryInformation_.Add(new IntermediaryInformation(item));
                     IDManager.SetID(intermediaryInformationIDRef_, intermediaryInformation_[intermediaryInformation_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     intermediaryInformationIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 intermediaryInformation_.Add(new IntermediaryInformation(item));
                 }
             }
             else
             {
                 intermediaryInformation_.Add(new IntermediaryInformation(item));
             }
         }
     }
     
 
     XmlNode beneficiaryBankNode = xmlNode.SelectSingleNode("beneficiaryBank");
     
     if (beneficiaryBankNode != null)
     {
         if (beneficiaryBankNode.Attributes["href"] != null || beneficiaryBankNode.Attributes["id"] != null) 
         {
             if (beneficiaryBankNode.Attributes["id"] != null) 
             {
                 beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["id"].Value;
                 Beneficiary ob = new Beneficiary(beneficiaryBankNode);
                 IDManager.SetID(beneficiaryBankIDRef_, ob);
             }
             else if (beneficiaryBankNode.Attributes["href"] != null)
             {
                 beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["href"].Value;
             }
             else
             {
                 beneficiaryBank_ = new Beneficiary(beneficiaryBankNode);
             }
         }
         else
         {
             beneficiaryBank_ = new Beneficiary(beneficiaryBankNode);
         }
     }
     
 
     XmlNode beneficiaryNode = xmlNode.SelectSingleNode("beneficiary");
     
     if (beneficiaryNode != null)
     {
         if (beneficiaryNode.Attributes["href"] != null || beneficiaryNode.Attributes["id"] != null) 
         {
             if (beneficiaryNode.Attributes["id"] != null) 
             {
                 beneficiaryIDRef_ = beneficiaryNode.Attributes["id"].Value;
                 Beneficiary ob = new Beneficiary(beneficiaryNode);
                 IDManager.SetID(beneficiaryIDRef_, ob);
             }
             else if (beneficiaryNode.Attributes["href"] != null)
             {
                 beneficiaryIDRef_ = beneficiaryNode.Attributes["href"].Value;
             }
             else
             {
                 beneficiary_ = new Beneficiary(beneficiaryNode);
             }
         }
         else
         {
             beneficiary_ = new Beneficiary(beneficiaryNode);
         }
     }
     
 
     XmlNode depositoryPartyReferenceNode = xmlNode.SelectSingleNode("depositoryPartyReference");
     
     if (depositoryPartyReferenceNode != null)
     {
         if (depositoryPartyReferenceNode.Attributes["href"] != null || depositoryPartyReferenceNode.Attributes["id"] != null) 
         {
             if (depositoryPartyReferenceNode.Attributes["id"] != null) 
             {
                 depositoryPartyReferenceIDRef_ = depositoryPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(depositoryPartyReferenceNode);
                 IDManager.SetID(depositoryPartyReferenceIDRef_, ob);
             }
             else if (depositoryPartyReferenceNode.Attributes["href"] != null)
             {
                 depositoryPartyReferenceIDRef_ = depositoryPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 depositoryPartyReference_ = new PartyReference(depositoryPartyReferenceNode);
             }
         }
         else
         {
             depositoryPartyReference_ = new PartyReference(depositoryPartyReferenceNode);
         }
     }
     
 
     XmlNodeList splitSettlementNodeList = xmlNode.SelectNodes("splitSettlement");
     
     if (splitSettlementNodeList != null)
     {
         this.splitSettlement_ = new List<SplitSettlement>();
         foreach (XmlNode item in splitSettlementNodeList)
         {
             if (item.Attributes["href"] != null || item.Attributes["id"] != null) 
             {
                 if (item.Attributes["id"] != null) 
                 {
                     splitSettlementIDRef_ = item.Attributes["id"].Value;
                     splitSettlement_.Add(new SplitSettlement(item));
                     IDManager.SetID(splitSettlementIDRef_, splitSettlement_[splitSettlement_.Count - 1 ]);
                 }
                 else if (item.Attributes["href"] != null)
                 {
                     splitSettlementIDRef_ = item.Attributes["href"].Value;
                 }
                 else
                 {
                 splitSettlement_.Add(new SplitSettlement(item));
                 }
             }
             else
             {
                 splitSettlement_.Add(new SplitSettlement(item));
             }
         }
     }
     
 
 }
 public SettlementInstruction(XmlNode xmlNode)
 {
     XmlNodeList settlementMethodNodeList = xmlNode.SelectNodes("settlementMethod");
     if (settlementMethodNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in settlementMethodNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 settlementMethodIDRef = item.Attributes["id"].Name;
                 SettlementMethod ob = SettlementMethod();
                 IDManager.SetID(settlementMethodIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 settlementMethodIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 settlementMethod = new SettlementMethod(item);
             }
         }
     }
     
 
     XmlNodeList correspondentInformationNodeList = xmlNode.SelectNodes("correspondentInformation");
     if (correspondentInformationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in correspondentInformationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 correspondentInformationIDRef = item.Attributes["id"].Name;
                 CorrespondentInformation ob = CorrespondentInformation();
                 IDManager.SetID(correspondentInformationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 correspondentInformationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 correspondentInformation = new CorrespondentInformation(item);
             }
         }
     }
     
 
     XmlNodeList intermediaryInformationNodeList = xmlNode.SelectNodes("intermediaryInformation");
     
     foreach (XmlNode item in intermediaryInformationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 intermediaryInformationIDRef = item.Attributes["id"].Name;
                 List<IntermediaryInformation> ob = new List<IntermediaryInformation>();
                 ob.Add(new IntermediaryInformation(item));
                 IDManager.SetID(intermediaryInformationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 intermediaryInformationIDRef = item.Attributes["href"].Name;
             }
             else
             {
             intermediaryInformation.Add(new IntermediaryInformation(item));
             }
         }
     }
     
 
     XmlNodeList beneficiaryBankNodeList = xmlNode.SelectNodes("beneficiaryBank");
     if (beneficiaryBankNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in beneficiaryBankNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 beneficiaryBankIDRef = item.Attributes["id"].Name;
                 Beneficiary ob = Beneficiary();
                 IDManager.SetID(beneficiaryBankIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 beneficiaryBankIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 beneficiaryBank = new Beneficiary(item);
             }
         }
     }
     
 
     XmlNodeList beneficiaryNodeList = xmlNode.SelectNodes("beneficiary");
     if (beneficiaryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in beneficiaryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 beneficiaryIDRef = item.Attributes["id"].Name;
                 Beneficiary ob = Beneficiary();
                 IDManager.SetID(beneficiaryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 beneficiaryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 beneficiary = new Beneficiary(item);
             }
         }
     }
     
 
     XmlNodeList depositoryPartyReferenceNodeList = xmlNode.SelectNodes("depositoryPartyReference");
     if (depositoryPartyReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in depositoryPartyReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 depositoryPartyReferenceIDRef = item.Attributes["id"].Name;
                 PartyReference ob = PartyReference();
                 IDManager.SetID(depositoryPartyReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 depositoryPartyReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 depositoryPartyReference = new PartyReference(item);
             }
         }
     }
     
 
     XmlNodeList splitSettlementNodeList = xmlNode.SelectNodes("splitSettlement");
     
     foreach (XmlNode item in splitSettlementNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 splitSettlementIDRef = item.Attributes["id"].Name;
                 List<SplitSettlement> ob = new List<SplitSettlement>();
                 ob.Add(new SplitSettlement(item));
                 IDManager.SetID(splitSettlementIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 splitSettlementIDRef = item.Attributes["href"].Name;
             }
             else
             {
             splitSettlement.Add(new SplitSettlement(item));
             }
         }
     }
     
 
 }
Example #4
0
        public SettlementInstruction(XmlNode xmlNode)
        {
            XmlNode settlementMethodNode = xmlNode.SelectSingleNode("settlementMethod");

            if (settlementMethodNode != null)
            {
                if (settlementMethodNode.Attributes["href"] != null || settlementMethodNode.Attributes["id"] != null)
                {
                    if (settlementMethodNode.Attributes["id"] != null)
                    {
                        settlementMethodIDRef_ = settlementMethodNode.Attributes["id"].Value;
                        SettlementMethod ob = new SettlementMethod(settlementMethodNode);
                        IDManager.SetID(settlementMethodIDRef_, ob);
                    }
                    else if (settlementMethodNode.Attributes["href"] != null)
                    {
                        settlementMethodIDRef_ = settlementMethodNode.Attributes["href"].Value;
                    }
                    else
                    {
                        settlementMethod_ = new SettlementMethod(settlementMethodNode);
                    }
                }
                else
                {
                    settlementMethod_ = new SettlementMethod(settlementMethodNode);
                }
            }


            XmlNode correspondentInformationNode = xmlNode.SelectSingleNode("correspondentInformation");

            if (correspondentInformationNode != null)
            {
                if (correspondentInformationNode.Attributes["href"] != null || correspondentInformationNode.Attributes["id"] != null)
                {
                    if (correspondentInformationNode.Attributes["id"] != null)
                    {
                        correspondentInformationIDRef_ = correspondentInformationNode.Attributes["id"].Value;
                        CorrespondentInformation ob = new CorrespondentInformation(correspondentInformationNode);
                        IDManager.SetID(correspondentInformationIDRef_, ob);
                    }
                    else if (correspondentInformationNode.Attributes["href"] != null)
                    {
                        correspondentInformationIDRef_ = correspondentInformationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        correspondentInformation_ = new CorrespondentInformation(correspondentInformationNode);
                    }
                }
                else
                {
                    correspondentInformation_ = new CorrespondentInformation(correspondentInformationNode);
                }
            }


            XmlNodeList intermediaryInformationNodeList = xmlNode.SelectNodes("intermediaryInformation");

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


            XmlNode beneficiaryBankNode = xmlNode.SelectSingleNode("beneficiaryBank");

            if (beneficiaryBankNode != null)
            {
                if (beneficiaryBankNode.Attributes["href"] != null || beneficiaryBankNode.Attributes["id"] != null)
                {
                    if (beneficiaryBankNode.Attributes["id"] != null)
                    {
                        beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["id"].Value;
                        Beneficiary ob = new Beneficiary(beneficiaryBankNode);
                        IDManager.SetID(beneficiaryBankIDRef_, ob);
                    }
                    else if (beneficiaryBankNode.Attributes["href"] != null)
                    {
                        beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["href"].Value;
                    }
                    else
                    {
                        beneficiaryBank_ = new Beneficiary(beneficiaryBankNode);
                    }
                }
                else
                {
                    beneficiaryBank_ = new Beneficiary(beneficiaryBankNode);
                }
            }


            XmlNode beneficiaryNode = xmlNode.SelectSingleNode("beneficiary");

            if (beneficiaryNode != null)
            {
                if (beneficiaryNode.Attributes["href"] != null || beneficiaryNode.Attributes["id"] != null)
                {
                    if (beneficiaryNode.Attributes["id"] != null)
                    {
                        beneficiaryIDRef_ = beneficiaryNode.Attributes["id"].Value;
                        Beneficiary ob = new Beneficiary(beneficiaryNode);
                        IDManager.SetID(beneficiaryIDRef_, ob);
                    }
                    else if (beneficiaryNode.Attributes["href"] != null)
                    {
                        beneficiaryIDRef_ = beneficiaryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        beneficiary_ = new Beneficiary(beneficiaryNode);
                    }
                }
                else
                {
                    beneficiary_ = new Beneficiary(beneficiaryNode);
                }
            }


            XmlNode depositoryPartyReferenceNode = xmlNode.SelectSingleNode("depositoryPartyReference");

            if (depositoryPartyReferenceNode != null)
            {
                if (depositoryPartyReferenceNode.Attributes["href"] != null || depositoryPartyReferenceNode.Attributes["id"] != null)
                {
                    if (depositoryPartyReferenceNode.Attributes["id"] != null)
                    {
                        depositoryPartyReferenceIDRef_ = depositoryPartyReferenceNode.Attributes["id"].Value;
                        PartyReference ob = new PartyReference(depositoryPartyReferenceNode);
                        IDManager.SetID(depositoryPartyReferenceIDRef_, ob);
                    }
                    else if (depositoryPartyReferenceNode.Attributes["href"] != null)
                    {
                        depositoryPartyReferenceIDRef_ = depositoryPartyReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        depositoryPartyReference_ = new PartyReference(depositoryPartyReferenceNode);
                    }
                }
                else
                {
                    depositoryPartyReference_ = new PartyReference(depositoryPartyReferenceNode);
                }
            }


            XmlNodeList splitSettlementNodeList = xmlNode.SelectNodes("splitSettlement");

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