public CorrespondentInformation(XmlNode xmlNode)
 {
     XmlNodeList routingIdsNodeList = xmlNode.SelectNodes("routingIds");
     if (routingIdsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in routingIdsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 routingIdsIDRef = item.Attributes["id"].Name;
                 RoutingIds ob = RoutingIds();
                 IDManager.SetID(routingIdsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 routingIdsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 routingIds = new RoutingIds(item);
             }
         }
     }
     
 
     XmlNodeList routingExplicitDetailsNodeList = xmlNode.SelectNodes("routingExplicitDetails");
     if (routingExplicitDetailsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in routingExplicitDetailsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 routingExplicitDetailsIDRef = item.Attributes["id"].Name;
                 RoutingExplicitDetails ob = RoutingExplicitDetails();
                 IDManager.SetID(routingExplicitDetailsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 routingExplicitDetailsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 routingExplicitDetails = new RoutingExplicitDetails(item);
             }
         }
     }
     
 
     XmlNodeList routingIdsAndExplicitDetailsNodeList = xmlNode.SelectNodes("routingIdsAndExplicitDetails");
     if (routingIdsAndExplicitDetailsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in routingIdsAndExplicitDetailsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 routingIdsAndExplicitDetailsIDRef = item.Attributes["id"].Name;
                 RoutingIdsAndExplicitDetails ob = RoutingIdsAndExplicitDetails();
                 IDManager.SetID(routingIdsAndExplicitDetailsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 routingIdsAndExplicitDetailsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 routingIdsAndExplicitDetails = new RoutingIdsAndExplicitDetails(item);
             }
         }
     }
     
 
     XmlNodeList correspondentPartyReferenceNodeList = xmlNode.SelectNodes("correspondentPartyReference");
     if (correspondentPartyReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in correspondentPartyReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 correspondentPartyReferenceIDRef = item.Attributes["id"].Name;
                 PartyReference ob = PartyReference();
                 IDManager.SetID(correspondentPartyReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 correspondentPartyReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 correspondentPartyReference = new PartyReference(item);
             }
         }
     }
     
 
 }
 public IntermediaryInformation(XmlNode xmlNode)
 {
     XmlNode routingIdsNode = xmlNode.SelectSingleNode("routingIds");
     
     if (routingIdsNode != null)
     {
         if (routingIdsNode.Attributes["href"] != null || routingIdsNode.Attributes["id"] != null) 
         {
             if (routingIdsNode.Attributes["id"] != null) 
             {
                 routingIdsIDRef_ = routingIdsNode.Attributes["id"].Value;
                 RoutingIds ob = new RoutingIds(routingIdsNode);
                 IDManager.SetID(routingIdsIDRef_, ob);
             }
             else if (routingIdsNode.Attributes["href"] != null)
             {
                 routingIdsIDRef_ = routingIdsNode.Attributes["href"].Value;
             }
             else
             {
                 routingIds_ = new RoutingIds(routingIdsNode);
             }
         }
         else
         {
             routingIds_ = new RoutingIds(routingIdsNode);
         }
     }
     
 
     XmlNode routingExplicitDetailsNode = xmlNode.SelectSingleNode("routingExplicitDetails");
     
     if (routingExplicitDetailsNode != null)
     {
         if (routingExplicitDetailsNode.Attributes["href"] != null || routingExplicitDetailsNode.Attributes["id"] != null) 
         {
             if (routingExplicitDetailsNode.Attributes["id"] != null) 
             {
                 routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["id"].Value;
                 RoutingExplicitDetails ob = new RoutingExplicitDetails(routingExplicitDetailsNode);
                 IDManager.SetID(routingExplicitDetailsIDRef_, ob);
             }
             else if (routingExplicitDetailsNode.Attributes["href"] != null)
             {
                 routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["href"].Value;
             }
             else
             {
                 routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
             }
         }
         else
         {
             routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
         }
     }
     
 
     XmlNode routingIdsAndExplicitDetailsNode = xmlNode.SelectSingleNode("routingIdsAndExplicitDetails");
     
     if (routingIdsAndExplicitDetailsNode != null)
     {
         if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null || routingIdsAndExplicitDetailsNode.Attributes["id"] != null) 
         {
             if (routingIdsAndExplicitDetailsNode.Attributes["id"] != null) 
             {
                 routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["id"].Value;
                 RoutingIdsAndExplicitDetails ob = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                 IDManager.SetID(routingIdsAndExplicitDetailsIDRef_, ob);
             }
             else if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null)
             {
                 routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["href"].Value;
             }
             else
             {
                 routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
             }
         }
         else
         {
             routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
         }
     }
     
 
     XmlNode intermediarySequenceNumberNode = xmlNode.SelectSingleNode("intermediarySequenceNumber");
     
     if (intermediarySequenceNumberNode != null)
     {
         if (intermediarySequenceNumberNode.Attributes["href"] != null || intermediarySequenceNumberNode.Attributes["id"] != null) 
         {
             if (intermediarySequenceNumberNode.Attributes["id"] != null) 
             {
                 intermediarySequenceNumberIDRef_ = intermediarySequenceNumberNode.Attributes["id"].Value;
                 XsdTypePositiveInteger ob = new XsdTypePositiveInteger(intermediarySequenceNumberNode);
                 IDManager.SetID(intermediarySequenceNumberIDRef_, ob);
             }
             else if (intermediarySequenceNumberNode.Attributes["href"] != null)
             {
                 intermediarySequenceNumberIDRef_ = intermediarySequenceNumberNode.Attributes["href"].Value;
             }
             else
             {
                 intermediarySequenceNumber_ = new XsdTypePositiveInteger(intermediarySequenceNumberNode);
             }
         }
         else
         {
             intermediarySequenceNumber_ = new XsdTypePositiveInteger(intermediarySequenceNumberNode);
         }
     }
     
 
     XmlNode intermediaryPartyReferenceNode = xmlNode.SelectSingleNode("intermediaryPartyReference");
     
     if (intermediaryPartyReferenceNode != null)
     {
         if (intermediaryPartyReferenceNode.Attributes["href"] != null || intermediaryPartyReferenceNode.Attributes["id"] != null) 
         {
             if (intermediaryPartyReferenceNode.Attributes["id"] != null) 
             {
                 intermediaryPartyReferenceIDRef_ = intermediaryPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(intermediaryPartyReferenceNode);
                 IDManager.SetID(intermediaryPartyReferenceIDRef_, ob);
             }
             else if (intermediaryPartyReferenceNode.Attributes["href"] != null)
             {
                 intermediaryPartyReferenceIDRef_ = intermediaryPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 intermediaryPartyReference_ = new PartyReference(intermediaryPartyReferenceNode);
             }
         }
         else
         {
             intermediaryPartyReference_ = new PartyReference(intermediaryPartyReferenceNode);
         }
     }
     
 
 }
        public IntermediaryInformation(XmlNode xmlNode)
        {
            XmlNode routingIdsNode = xmlNode.SelectSingleNode("routingIds");

            if (routingIdsNode != null)
            {
                if (routingIdsNode.Attributes["href"] != null || routingIdsNode.Attributes["id"] != null)
                {
                    if (routingIdsNode.Attributes["id"] != null)
                    {
                        routingIdsIDRef_ = routingIdsNode.Attributes["id"].Value;
                        RoutingIds ob = new RoutingIds(routingIdsNode);
                        IDManager.SetID(routingIdsIDRef_, ob);
                    }
                    else if (routingIdsNode.Attributes["href"] != null)
                    {
                        routingIdsIDRef_ = routingIdsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingIds_ = new RoutingIds(routingIdsNode);
                    }
                }
                else
                {
                    routingIds_ = new RoutingIds(routingIdsNode);
                }
            }


            XmlNode routingExplicitDetailsNode = xmlNode.SelectSingleNode("routingExplicitDetails");

            if (routingExplicitDetailsNode != null)
            {
                if (routingExplicitDetailsNode.Attributes["href"] != null || routingExplicitDetailsNode.Attributes["id"] != null)
                {
                    if (routingExplicitDetailsNode.Attributes["id"] != null)
                    {
                        routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["id"].Value;
                        RoutingExplicitDetails ob = new RoutingExplicitDetails(routingExplicitDetailsNode);
                        IDManager.SetID(routingExplicitDetailsIDRef_, ob);
                    }
                    else if (routingExplicitDetailsNode.Attributes["href"] != null)
                    {
                        routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
                    }
                }
                else
                {
                    routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
                }
            }


            XmlNode routingIdsAndExplicitDetailsNode = xmlNode.SelectSingleNode("routingIdsAndExplicitDetails");

            if (routingIdsAndExplicitDetailsNode != null)
            {
                if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null || routingIdsAndExplicitDetailsNode.Attributes["id"] != null)
                {
                    if (routingIdsAndExplicitDetailsNode.Attributes["id"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["id"].Value;
                        RoutingIdsAndExplicitDetails ob = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                        IDManager.SetID(routingIdsAndExplicitDetailsIDRef_, ob);
                    }
                    else if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                    }
                }
                else
                {
                    routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                }
            }


            XmlNode intermediarySequenceNumberNode = xmlNode.SelectSingleNode("intermediarySequenceNumber");

            if (intermediarySequenceNumberNode != null)
            {
                if (intermediarySequenceNumberNode.Attributes["href"] != null || intermediarySequenceNumberNode.Attributes["id"] != null)
                {
                    if (intermediarySequenceNumberNode.Attributes["id"] != null)
                    {
                        intermediarySequenceNumberIDRef_ = intermediarySequenceNumberNode.Attributes["id"].Value;
                        XsdTypePositiveInteger ob = new XsdTypePositiveInteger(intermediarySequenceNumberNode);
                        IDManager.SetID(intermediarySequenceNumberIDRef_, ob);
                    }
                    else if (intermediarySequenceNumberNode.Attributes["href"] != null)
                    {
                        intermediarySequenceNumberIDRef_ = intermediarySequenceNumberNode.Attributes["href"].Value;
                    }
                    else
                    {
                        intermediarySequenceNumber_ = new XsdTypePositiveInteger(intermediarySequenceNumberNode);
                    }
                }
                else
                {
                    intermediarySequenceNumber_ = new XsdTypePositiveInteger(intermediarySequenceNumberNode);
                }
            }


            XmlNode intermediaryPartyReferenceNode = xmlNode.SelectSingleNode("intermediaryPartyReference");

            if (intermediaryPartyReferenceNode != null)
            {
                if (intermediaryPartyReferenceNode.Attributes["href"] != null || intermediaryPartyReferenceNode.Attributes["id"] != null)
                {
                    if (intermediaryPartyReferenceNode.Attributes["id"] != null)
                    {
                        intermediaryPartyReferenceIDRef_ = intermediaryPartyReferenceNode.Attributes["id"].Value;
                        PartyReference ob = new PartyReference(intermediaryPartyReferenceNode);
                        IDManager.SetID(intermediaryPartyReferenceIDRef_, ob);
                    }
                    else if (intermediaryPartyReferenceNode.Attributes["href"] != null)
                    {
                        intermediaryPartyReferenceIDRef_ = intermediaryPartyReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        intermediaryPartyReference_ = new PartyReference(intermediaryPartyReferenceNode);
                    }
                }
                else
                {
                    intermediaryPartyReference_ = new PartyReference(intermediaryPartyReferenceNode);
                }
            }
        }
 public CorrespondentInformation(XmlNode xmlNode)
 {
     XmlNode routingIdsNode = xmlNode.SelectSingleNode("routingIds");
     
     if (routingIdsNode != null)
     {
         if (routingIdsNode.Attributes["href"] != null || routingIdsNode.Attributes["id"] != null) 
         {
             if (routingIdsNode.Attributes["id"] != null) 
             {
                 routingIdsIDRef_ = routingIdsNode.Attributes["id"].Value;
                 RoutingIds ob = new RoutingIds(routingIdsNode);
                 IDManager.SetID(routingIdsIDRef_, ob);
             }
             else if (routingIdsNode.Attributes["href"] != null)
             {
                 routingIdsIDRef_ = routingIdsNode.Attributes["href"].Value;
             }
             else
             {
                 routingIds_ = new RoutingIds(routingIdsNode);
             }
         }
         else
         {
             routingIds_ = new RoutingIds(routingIdsNode);
         }
     }
     
 
     XmlNode routingExplicitDetailsNode = xmlNode.SelectSingleNode("routingExplicitDetails");
     
     if (routingExplicitDetailsNode != null)
     {
         if (routingExplicitDetailsNode.Attributes["href"] != null || routingExplicitDetailsNode.Attributes["id"] != null) 
         {
             if (routingExplicitDetailsNode.Attributes["id"] != null) 
             {
                 routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["id"].Value;
                 RoutingExplicitDetails ob = new RoutingExplicitDetails(routingExplicitDetailsNode);
                 IDManager.SetID(routingExplicitDetailsIDRef_, ob);
             }
             else if (routingExplicitDetailsNode.Attributes["href"] != null)
             {
                 routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["href"].Value;
             }
             else
             {
                 routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
             }
         }
         else
         {
             routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
         }
     }
     
 
     XmlNode routingIdsAndExplicitDetailsNode = xmlNode.SelectSingleNode("routingIdsAndExplicitDetails");
     
     if (routingIdsAndExplicitDetailsNode != null)
     {
         if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null || routingIdsAndExplicitDetailsNode.Attributes["id"] != null) 
         {
             if (routingIdsAndExplicitDetailsNode.Attributes["id"] != null) 
             {
                 routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["id"].Value;
                 RoutingIdsAndExplicitDetails ob = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                 IDManager.SetID(routingIdsAndExplicitDetailsIDRef_, ob);
             }
             else if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null)
             {
                 routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["href"].Value;
             }
             else
             {
                 routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
             }
         }
         else
         {
             routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
         }
     }
     
 
     XmlNode correspondentPartyReferenceNode = xmlNode.SelectSingleNode("correspondentPartyReference");
     
     if (correspondentPartyReferenceNode != null)
     {
         if (correspondentPartyReferenceNode.Attributes["href"] != null || correspondentPartyReferenceNode.Attributes["id"] != null) 
         {
             if (correspondentPartyReferenceNode.Attributes["id"] != null) 
             {
                 correspondentPartyReferenceIDRef_ = correspondentPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(correspondentPartyReferenceNode);
                 IDManager.SetID(correspondentPartyReferenceIDRef_, ob);
             }
             else if (correspondentPartyReferenceNode.Attributes["href"] != null)
             {
                 correspondentPartyReferenceIDRef_ = correspondentPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 correspondentPartyReference_ = new PartyReference(correspondentPartyReferenceNode);
             }
         }
         else
         {
             correspondentPartyReference_ = new PartyReference(correspondentPartyReferenceNode);
         }
     }
     
 
 }
Beispiel #5
0
        public IntermediaryInformation(XmlNode xmlNode)
        {
            XmlNodeList routingIdsNodeList = xmlNode.SelectNodes("routingIds");

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

            foreach (XmlNode item in routingIdsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        routingIdsIDRef = item.Attributes["id"].Name;
                        RoutingIds ob = RoutingIds();
                        IDManager.SetID(routingIdsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        routingIdsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        routingIds = new RoutingIds(item);
                    }
                }
            }


            XmlNodeList routingExplicitDetailsNodeList = xmlNode.SelectNodes("routingExplicitDetails");

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

            foreach (XmlNode item in routingExplicitDetailsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        routingExplicitDetailsIDRef = item.Attributes["id"].Name;
                        RoutingExplicitDetails ob = RoutingExplicitDetails();
                        IDManager.SetID(routingExplicitDetailsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        routingExplicitDetailsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        routingExplicitDetails = new RoutingExplicitDetails(item);
                    }
                }
            }


            XmlNodeList routingIdsAndExplicitDetailsNodeList = xmlNode.SelectNodes("routingIdsAndExplicitDetails");

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

            foreach (XmlNode item in routingIdsAndExplicitDetailsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef = item.Attributes["id"].Name;
                        RoutingIdsAndExplicitDetails ob = RoutingIdsAndExplicitDetails();
                        IDManager.SetID(routingIdsAndExplicitDetailsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        routingIdsAndExplicitDetailsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        routingIdsAndExplicitDetails = new RoutingIdsAndExplicitDetails(item);
                    }
                }
            }


            XmlNodeList intermediarySequenceNumberNodeList = xmlNode.SelectNodes("intermediarySequenceNumber");

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

            foreach (XmlNode item in intermediarySequenceNumberNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        intermediarySequenceNumberIDRef = item.Attributes["id"].Name;
                        XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                        IDManager.SetID(intermediarySequenceNumberIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        intermediarySequenceNumberIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        intermediarySequenceNumber = new XsdTypePositiveInteger(item);
                    }
                }
            }


            XmlNodeList intermediaryPartyReferenceNodeList = xmlNode.SelectNodes("intermediaryPartyReference");

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

            foreach (XmlNode item in intermediaryPartyReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        intermediaryPartyReferenceIDRef = item.Attributes["id"].Name;
                        PartyReference ob = PartyReference();
                        IDManager.SetID(intermediaryPartyReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        intermediaryPartyReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        intermediaryPartyReference = new PartyReference(item);
                    }
                }
            }
        }
 public IntermediaryInformation(XmlNode xmlNode)
 {
     XmlNodeList routingIdsNodeList = xmlNode.SelectNodes("routingIds");
     if (routingIdsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in routingIdsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 routingIdsIDRef = item.Attributes["id"].Name;
                 RoutingIds ob = RoutingIds();
                 IDManager.SetID(routingIdsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 routingIdsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 routingIds = new RoutingIds(item);
             }
         }
     }
     
 
     XmlNodeList routingExplicitDetailsNodeList = xmlNode.SelectNodes("routingExplicitDetails");
     if (routingExplicitDetailsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in routingExplicitDetailsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 routingExplicitDetailsIDRef = item.Attributes["id"].Name;
                 RoutingExplicitDetails ob = RoutingExplicitDetails();
                 IDManager.SetID(routingExplicitDetailsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 routingExplicitDetailsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 routingExplicitDetails = new RoutingExplicitDetails(item);
             }
         }
     }
     
 
     XmlNodeList routingIdsAndExplicitDetailsNodeList = xmlNode.SelectNodes("routingIdsAndExplicitDetails");
     if (routingIdsAndExplicitDetailsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in routingIdsAndExplicitDetailsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 routingIdsAndExplicitDetailsIDRef = item.Attributes["id"].Name;
                 RoutingIdsAndExplicitDetails ob = RoutingIdsAndExplicitDetails();
                 IDManager.SetID(routingIdsAndExplicitDetailsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 routingIdsAndExplicitDetailsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 routingIdsAndExplicitDetails = new RoutingIdsAndExplicitDetails(item);
             }
         }
     }
     
 
     XmlNodeList intermediarySequenceNumberNodeList = xmlNode.SelectNodes("intermediarySequenceNumber");
     if (intermediarySequenceNumberNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in intermediarySequenceNumberNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 intermediarySequenceNumberIDRef = item.Attributes["id"].Name;
                 XsdTypePositiveInteger ob = XsdTypePositiveInteger();
                 IDManager.SetID(intermediarySequenceNumberIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 intermediarySequenceNumberIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 intermediarySequenceNumber = new XsdTypePositiveInteger(item);
             }
         }
     }
     
 
     XmlNodeList intermediaryPartyReferenceNodeList = xmlNode.SelectNodes("intermediaryPartyReference");
     if (intermediaryPartyReferenceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in intermediaryPartyReferenceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 intermediaryPartyReferenceIDRef = item.Attributes["id"].Name;
                 PartyReference ob = PartyReference();
                 IDManager.SetID(intermediaryPartyReferenceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 intermediaryPartyReferenceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 intermediaryPartyReference = new PartyReference(item);
             }
         }
     }
     
 
 }
        public Beneficiary(XmlNode xmlNode)
        {
            XmlNode routingIdsNode = xmlNode.SelectSingleNode("routingIds");

            if (routingIdsNode != null)
            {
                if (routingIdsNode.Attributes["href"] != null || routingIdsNode.Attributes["id"] != null)
                {
                    if (routingIdsNode.Attributes["id"] != null)
                    {
                        routingIdsIDRef_ = routingIdsNode.Attributes["id"].Value;
                        RoutingIds ob = new RoutingIds(routingIdsNode);
                        IDManager.SetID(routingIdsIDRef_, ob);
                    }
                    else if (routingIdsNode.Attributes["href"] != null)
                    {
                        routingIdsIDRef_ = routingIdsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingIds_ = new RoutingIds(routingIdsNode);
                    }
                }
                else
                {
                    routingIds_ = new RoutingIds(routingIdsNode);
                }
            }


            XmlNode routingExplicitDetailsNode = xmlNode.SelectSingleNode("routingExplicitDetails");

            if (routingExplicitDetailsNode != null)
            {
                if (routingExplicitDetailsNode.Attributes["href"] != null || routingExplicitDetailsNode.Attributes["id"] != null)
                {
                    if (routingExplicitDetailsNode.Attributes["id"] != null)
                    {
                        routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["id"].Value;
                        RoutingExplicitDetails ob = new RoutingExplicitDetails(routingExplicitDetailsNode);
                        IDManager.SetID(routingExplicitDetailsIDRef_, ob);
                    }
                    else if (routingExplicitDetailsNode.Attributes["href"] != null)
                    {
                        routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
                    }
                }
                else
                {
                    routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
                }
            }


            XmlNode routingIdsAndExplicitDetailsNode = xmlNode.SelectSingleNode("routingIdsAndExplicitDetails");

            if (routingIdsAndExplicitDetailsNode != null)
            {
                if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null || routingIdsAndExplicitDetailsNode.Attributes["id"] != null)
                {
                    if (routingIdsAndExplicitDetailsNode.Attributes["id"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["id"].Value;
                        RoutingIdsAndExplicitDetails ob = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                        IDManager.SetID(routingIdsAndExplicitDetailsIDRef_, ob);
                    }
                    else if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                    }
                }
                else
                {
                    routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                }
            }


            XmlNode beneficiaryPartyReferenceNode = xmlNode.SelectSingleNode("beneficiaryPartyReference");

            if (beneficiaryPartyReferenceNode != null)
            {
                if (beneficiaryPartyReferenceNode.Attributes["href"] != null || beneficiaryPartyReferenceNode.Attributes["id"] != null)
                {
                    if (beneficiaryPartyReferenceNode.Attributes["id"] != null)
                    {
                        beneficiaryPartyReferenceIDRef_ = beneficiaryPartyReferenceNode.Attributes["id"].Value;
                        PartyReference ob = new PartyReference(beneficiaryPartyReferenceNode);
                        IDManager.SetID(beneficiaryPartyReferenceIDRef_, ob);
                    }
                    else if (beneficiaryPartyReferenceNode.Attributes["href"] != null)
                    {
                        beneficiaryPartyReferenceIDRef_ = beneficiaryPartyReferenceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        beneficiaryPartyReference_ = new PartyReference(beneficiaryPartyReferenceNode);
                    }
                }
                else
                {
                    beneficiaryPartyReference_ = new PartyReference(beneficiaryPartyReferenceNode);
                }
            }
        }
 public Beneficiary(XmlNode xmlNode)
 {
     XmlNode routingIdsNode = xmlNode.SelectSingleNode("routingIds");
     
     if (routingIdsNode != null)
     {
         if (routingIdsNode.Attributes["href"] != null || routingIdsNode.Attributes["id"] != null) 
         {
             if (routingIdsNode.Attributes["id"] != null) 
             {
                 routingIdsIDRef_ = routingIdsNode.Attributes["id"].Value;
                 RoutingIds ob = new RoutingIds(routingIdsNode);
                 IDManager.SetID(routingIdsIDRef_, ob);
             }
             else if (routingIdsNode.Attributes["href"] != null)
             {
                 routingIdsIDRef_ = routingIdsNode.Attributes["href"].Value;
             }
             else
             {
                 routingIds_ = new RoutingIds(routingIdsNode);
             }
         }
         else
         {
             routingIds_ = new RoutingIds(routingIdsNode);
         }
     }
     
 
     XmlNode routingExplicitDetailsNode = xmlNode.SelectSingleNode("routingExplicitDetails");
     
     if (routingExplicitDetailsNode != null)
     {
         if (routingExplicitDetailsNode.Attributes["href"] != null || routingExplicitDetailsNode.Attributes["id"] != null) 
         {
             if (routingExplicitDetailsNode.Attributes["id"] != null) 
             {
                 routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["id"].Value;
                 RoutingExplicitDetails ob = new RoutingExplicitDetails(routingExplicitDetailsNode);
                 IDManager.SetID(routingExplicitDetailsIDRef_, ob);
             }
             else if (routingExplicitDetailsNode.Attributes["href"] != null)
             {
                 routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["href"].Value;
             }
             else
             {
                 routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
             }
         }
         else
         {
             routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
         }
     }
     
 
     XmlNode routingIdsAndExplicitDetailsNode = xmlNode.SelectSingleNode("routingIdsAndExplicitDetails");
     
     if (routingIdsAndExplicitDetailsNode != null)
     {
         if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null || routingIdsAndExplicitDetailsNode.Attributes["id"] != null) 
         {
             if (routingIdsAndExplicitDetailsNode.Attributes["id"] != null) 
             {
                 routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["id"].Value;
                 RoutingIdsAndExplicitDetails ob = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                 IDManager.SetID(routingIdsAndExplicitDetailsIDRef_, ob);
             }
             else if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null)
             {
                 routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["href"].Value;
             }
             else
             {
                 routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
             }
         }
         else
         {
             routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
         }
     }
     
 
     XmlNode beneficiaryPartyReferenceNode = xmlNode.SelectSingleNode("beneficiaryPartyReference");
     
     if (beneficiaryPartyReferenceNode != null)
     {
         if (beneficiaryPartyReferenceNode.Attributes["href"] != null || beneficiaryPartyReferenceNode.Attributes["id"] != null) 
         {
             if (beneficiaryPartyReferenceNode.Attributes["id"] != null) 
             {
                 beneficiaryPartyReferenceIDRef_ = beneficiaryPartyReferenceNode.Attributes["id"].Value;
                 PartyReference ob = new PartyReference(beneficiaryPartyReferenceNode);
                 IDManager.SetID(beneficiaryPartyReferenceIDRef_, ob);
             }
             else if (beneficiaryPartyReferenceNode.Attributes["href"] != null)
             {
                 beneficiaryPartyReferenceIDRef_ = beneficiaryPartyReferenceNode.Attributes["href"].Value;
             }
             else
             {
                 beneficiaryPartyReference_ = new PartyReference(beneficiaryPartyReferenceNode);
             }
         }
         else
         {
             beneficiaryPartyReference_ = new PartyReference(beneficiaryPartyReferenceNode);
         }
     }
     
 
 }
        public Beneficiary(XmlNode xmlNode)
        {
            XmlNodeList routingIdsNodeList = xmlNode.SelectNodes("routingIds");

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

            foreach (XmlNode item in routingIdsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        routingIdsIDRef = item.Attributes["id"].Name;
                        RoutingIds ob = RoutingIds();
                        IDManager.SetID(routingIdsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        routingIdsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        routingIds = new RoutingIds(item);
                    }
                }
            }


            XmlNodeList routingExplicitDetailsNodeList = xmlNode.SelectNodes("routingExplicitDetails");

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

            foreach (XmlNode item in routingExplicitDetailsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        routingExplicitDetailsIDRef = item.Attributes["id"].Name;
                        RoutingExplicitDetails ob = RoutingExplicitDetails();
                        IDManager.SetID(routingExplicitDetailsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        routingExplicitDetailsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        routingExplicitDetails = new RoutingExplicitDetails(item);
                    }
                }
            }


            XmlNodeList routingIdsAndExplicitDetailsNodeList = xmlNode.SelectNodes("routingIdsAndExplicitDetails");

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

            foreach (XmlNode item in routingIdsAndExplicitDetailsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef = item.Attributes["id"].Name;
                        RoutingIdsAndExplicitDetails ob = RoutingIdsAndExplicitDetails();
                        IDManager.SetID(routingIdsAndExplicitDetailsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        routingIdsAndExplicitDetailsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        routingIdsAndExplicitDetails = new RoutingIdsAndExplicitDetails(item);
                    }
                }
            }


            XmlNodeList beneficiaryPartyReferenceNodeList = xmlNode.SelectNodes("beneficiaryPartyReference");

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

            foreach (XmlNode item in beneficiaryPartyReferenceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        beneficiaryPartyReferenceIDRef = item.Attributes["id"].Name;
                        PartyReference ob = PartyReference();
                        IDManager.SetID(beneficiaryPartyReferenceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        beneficiaryPartyReferenceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        beneficiaryPartyReference = new PartyReference(item);
                    }
                }
            }
        }
Beispiel #10
0
        public CorrespondentInformation(XmlNode xmlNode)
        {
            XmlNode routingIdsNode = xmlNode.SelectSingleNode("routingIds");

            if (routingIdsNode != null)
            {
                if (routingIdsNode.Attributes["href"] != null || routingIdsNode.Attributes["id"] != null)
                {
                    if (routingIdsNode.Attributes["id"] != null)
                    {
                        routingIdsIDRef_ = routingIdsNode.Attributes["id"].Value;
                        RoutingIds ob = new RoutingIds(routingIdsNode);
                        IDManager.SetID(routingIdsIDRef_, ob);
                    }
                    else if (routingIdsNode.Attributes["href"] != null)
                    {
                        routingIdsIDRef_ = routingIdsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingIds_ = new RoutingIds(routingIdsNode);
                    }
                }
                else
                {
                    routingIds_ = new RoutingIds(routingIdsNode);
                }
            }


            XmlNode routingExplicitDetailsNode = xmlNode.SelectSingleNode("routingExplicitDetails");

            if (routingExplicitDetailsNode != null)
            {
                if (routingExplicitDetailsNode.Attributes["href"] != null || routingExplicitDetailsNode.Attributes["id"] != null)
                {
                    if (routingExplicitDetailsNode.Attributes["id"] != null)
                    {
                        routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["id"].Value;
                        RoutingExplicitDetails ob = new RoutingExplicitDetails(routingExplicitDetailsNode);
                        IDManager.SetID(routingExplicitDetailsIDRef_, ob);
                    }
                    else if (routingExplicitDetailsNode.Attributes["href"] != null)
                    {
                        routingExplicitDetailsIDRef_ = routingExplicitDetailsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
                    }
                }
                else
                {
                    routingExplicitDetails_ = new RoutingExplicitDetails(routingExplicitDetailsNode);
                }
            }


            XmlNode routingIdsAndExplicitDetailsNode = xmlNode.SelectSingleNode("routingIdsAndExplicitDetails");

            if (routingIdsAndExplicitDetailsNode != null)
            {
                if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null || routingIdsAndExplicitDetailsNode.Attributes["id"] != null)
                {
                    if (routingIdsAndExplicitDetailsNode.Attributes["id"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["id"].Value;
                        RoutingIdsAndExplicitDetails ob = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                        IDManager.SetID(routingIdsAndExplicitDetailsIDRef_, ob);
                    }
                    else if (routingIdsAndExplicitDetailsNode.Attributes["href"] != null)
                    {
                        routingIdsAndExplicitDetailsIDRef_ = routingIdsAndExplicitDetailsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                    }
                }
                else
                {
                    routingIdsAndExplicitDetails_ = new RoutingIdsAndExplicitDetails(routingIdsAndExplicitDetailsNode);
                }
            }


            XmlNode correspondentPartyReferenceNode = xmlNode.SelectSingleNode("correspondentPartyReference");

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