public PaymentDetails(XmlNode xmlNode) { XmlNode paymentReferenceNode = xmlNode.SelectSingleNode("paymentReference"); if (paymentReferenceNode != null) { if (paymentReferenceNode.Attributes["href"] != null || paymentReferenceNode.Attributes["id"] != null) { if (paymentReferenceNode.Attributes["id"] != null) { paymentReferenceIDRef_ = paymentReferenceNode.Attributes["id"].Value; PaymentReference ob = new PaymentReference(paymentReferenceNode); IDManager.SetID(paymentReferenceIDRef_, ob); } else if (paymentReferenceNode.Attributes["href"] != null) { paymentReferenceIDRef_ = paymentReferenceNode.Attributes["href"].Value; } else { paymentReference_ = new PaymentReference(paymentReferenceNode); } } else { paymentReference_ = new PaymentReference(paymentReferenceNode); } } XmlNodeList grossCashflowNodeList = xmlNode.SelectNodes("grossCashflow"); if (grossCashflowNodeList != null) { this.grossCashflow_ = new List<GrossCashflow>(); foreach (XmlNode item in grossCashflowNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { grossCashflowIDRef_ = item.Attributes["id"].Value; grossCashflow_.Add(new GrossCashflow(item)); IDManager.SetID(grossCashflowIDRef_, grossCashflow_[grossCashflow_.Count - 1 ]); } else if (item.Attributes["href"] != null) { grossCashflowIDRef_ = item.Attributes["href"].Value; } else { grossCashflow_.Add(new GrossCashflow(item)); } } else { grossCashflow_.Add(new GrossCashflow(item)); } } } XmlNode settlementInformationNode = xmlNode.SelectSingleNode("settlementInformation"); if (settlementInformationNode != null) { if (settlementInformationNode.Attributes["href"] != null || settlementInformationNode.Attributes["id"] != null) { if (settlementInformationNode.Attributes["id"] != null) { settlementInformationIDRef_ = settlementInformationNode.Attributes["id"].Value; SettlementInformation ob = new SettlementInformation(settlementInformationNode); IDManager.SetID(settlementInformationIDRef_, ob); } else if (settlementInformationNode.Attributes["href"] != null) { settlementInformationIDRef_ = settlementInformationNode.Attributes["href"].Value; } else { settlementInformation_ = new SettlementInformation(settlementInformationNode); } } else { settlementInformation_ = new SettlementInformation(settlementInformationNode); } } }
public PaymentDetails(XmlNode xmlNode) { XmlNodeList paymentReferenceNodeList = xmlNode.SelectNodes("paymentReference"); if (paymentReferenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in paymentReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { paymentReferenceIDRef = item.Attributes["id"].Name; PaymentReference ob = PaymentReference(); IDManager.SetID(paymentReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { paymentReferenceIDRef = item.Attributes["href"].Name; } else { paymentReference = new PaymentReference(item); } } } XmlNodeList grossCashflowNodeList = xmlNode.SelectNodes("grossCashflow"); foreach (XmlNode item in grossCashflowNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { grossCashflowIDRef = item.Attributes["id"].Name; List<GrossCashflow> ob = new List<GrossCashflow>(); ob.Add(new GrossCashflow(item)); IDManager.SetID(grossCashflowIDRef, ob); } else if (item.Attributes.ToString() == "href") { grossCashflowIDRef = item.Attributes["href"].Name; } else { grossCashflow.Add(new GrossCashflow(item)); } } } XmlNodeList settlementInformationNodeList = xmlNode.SelectNodes("settlementInformation"); if (settlementInformationNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in settlementInformationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { settlementInformationIDRef = item.Attributes["id"].Name; SettlementInformation ob = SettlementInformation(); IDManager.SetID(settlementInformationIDRef, ob); } else if (item.Attributes.ToString() == "href") { settlementInformationIDRef = item.Attributes["href"].Name; } else { settlementInformation = new SettlementInformation(item); } } } }
public PaymentDetails(XmlNode xmlNode) { XmlNode paymentReferenceNode = xmlNode.SelectSingleNode("paymentReference"); if (paymentReferenceNode != null) { if (paymentReferenceNode.Attributes["href"] != null || paymentReferenceNode.Attributes["id"] != null) { if (paymentReferenceNode.Attributes["id"] != null) { paymentReferenceIDRef_ = paymentReferenceNode.Attributes["id"].Value; PaymentReference ob = new PaymentReference(paymentReferenceNode); IDManager.SetID(paymentReferenceIDRef_, ob); } else if (paymentReferenceNode.Attributes["href"] != null) { paymentReferenceIDRef_ = paymentReferenceNode.Attributes["href"].Value; } else { paymentReference_ = new PaymentReference(paymentReferenceNode); } } else { paymentReference_ = new PaymentReference(paymentReferenceNode); } } XmlNodeList grossCashflowNodeList = xmlNode.SelectNodes("grossCashflow"); if (grossCashflowNodeList != null) { this.grossCashflow_ = new List <GrossCashflow>(); foreach (XmlNode item in grossCashflowNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] != null) { if (item.Attributes["id"] != null) { grossCashflowIDRef_ = item.Attributes["id"].Value; grossCashflow_.Add(new GrossCashflow(item)); IDManager.SetID(grossCashflowIDRef_, grossCashflow_[grossCashflow_.Count - 1]); } else if (item.Attributes["href"] != null) { grossCashflowIDRef_ = item.Attributes["href"].Value; } else { grossCashflow_.Add(new GrossCashflow(item)); } } else { grossCashflow_.Add(new GrossCashflow(item)); } } } XmlNode settlementInformationNode = xmlNode.SelectSingleNode("settlementInformation"); if (settlementInformationNode != null) { if (settlementInformationNode.Attributes["href"] != null || settlementInformationNode.Attributes["id"] != null) { if (settlementInformationNode.Attributes["id"] != null) { settlementInformationIDRef_ = settlementInformationNode.Attributes["id"].Value; SettlementInformation ob = new SettlementInformation(settlementInformationNode); IDManager.SetID(settlementInformationIDRef_, ob); } else if (settlementInformationNode.Attributes["href"] != null) { settlementInformationIDRef_ = settlementInformationNode.Attributes["href"].Value; } else { settlementInformation_ = new SettlementInformation(settlementInformationNode); } } else { settlementInformation_ = new SettlementInformation(settlementInformationNode); } } }
public PaymentDetails(XmlNode xmlNode) { XmlNodeList paymentReferenceNodeList = xmlNode.SelectNodes("paymentReference"); if (paymentReferenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in paymentReferenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { paymentReferenceIDRef = item.Attributes["id"].Name; PaymentReference ob = PaymentReference(); IDManager.SetID(paymentReferenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { paymentReferenceIDRef = item.Attributes["href"].Name; } else { paymentReference = new PaymentReference(item); } } } XmlNodeList grossCashflowNodeList = xmlNode.SelectNodes("grossCashflow"); foreach (XmlNode item in grossCashflowNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { grossCashflowIDRef = item.Attributes["id"].Name; List <GrossCashflow> ob = new List <GrossCashflow>(); ob.Add(new GrossCashflow(item)); IDManager.SetID(grossCashflowIDRef, ob); } else if (item.Attributes.ToString() == "href") { grossCashflowIDRef = item.Attributes["href"].Name; } else { grossCashflow.Add(new GrossCashflow(item)); } } } XmlNodeList settlementInformationNodeList = xmlNode.SelectNodes("settlementInformation"); if (settlementInformationNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in settlementInformationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { settlementInformationIDRef = item.Attributes["id"].Name; SettlementInformation ob = SettlementInformation(); IDManager.SetID(settlementInformationIDRef, ob); } else if (item.Attributes.ToString() == "href") { settlementInformationIDRef = item.Attributes["href"].Name; } else { settlementInformation = new SettlementInformation(item); } } } }