public ClearingStatus(XmlNode xmlNode) : base(xmlNode) { XmlNode clearingStatusItemNode = xmlNode.SelectSingleNode("clearingStatusItem"); if (clearingStatusItemNode != null) { if (clearingStatusItemNode.Attributes["href"] != null || clearingStatusItemNode.Attributes["id"] != null) { if (clearingStatusItemNode.Attributes["id"] != null) { clearingStatusItemIDRef_ = clearingStatusItemNode.Attributes["id"].Value; ClearingStatusItem ob = new ClearingStatusItem(clearingStatusItemNode); IDManager.SetID(clearingStatusItemIDRef_, ob); } else if (clearingStatusItemNode.Attributes["href"] != null) { clearingStatusItemIDRef_ = clearingStatusItemNode.Attributes["href"].Value; } else { clearingStatusItem_ = new ClearingStatusItem(clearingStatusItemNode); } } else { clearingStatusItem_ = new ClearingStatusItem(clearingStatusItemNode); } } 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 ClearingStatus(XmlNode xmlNode) : base(xmlNode) { XmlNodeList clearingStatusItemNodeList = xmlNode.SelectNodes("clearingStatusItem"); if (clearingStatusItemNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in clearingStatusItemNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { clearingStatusItemIDRef = item.Attributes["id"].Name; ClearingStatusItem ob = ClearingStatusItem(); IDManager.SetID(clearingStatusItemIDRef, ob); } else if (item.Attributes.ToString() == "href") { clearingStatusItemIDRef = item.Attributes["href"].Name; } else { clearingStatusItem = new ClearingStatusItem(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 ClearingStatus(XmlNode xmlNode) : base(xmlNode) { XmlNode clearingStatusItemNode = xmlNode.SelectSingleNode("clearingStatusItem"); if (clearingStatusItemNode != null) { if (clearingStatusItemNode.Attributes["href"] != null || clearingStatusItemNode.Attributes["id"] != null) { if (clearingStatusItemNode.Attributes["id"] != null) { clearingStatusItemIDRef_ = clearingStatusItemNode.Attributes["id"].Value; ClearingStatusItem ob = new ClearingStatusItem(clearingStatusItemNode); IDManager.SetID(clearingStatusItemIDRef_, ob); } else if (clearingStatusItemNode.Attributes["href"] != null) { clearingStatusItemIDRef_ = clearingStatusItemNode.Attributes["href"].Value; } else { clearingStatusItem_ = new ClearingStatusItem(clearingStatusItemNode); } } else { clearingStatusItem_ = new ClearingStatusItem(clearingStatusItemNode); } } 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 ClearingStatus(XmlNode xmlNode) : base(xmlNode) { XmlNodeList clearingStatusItemNodeList = xmlNode.SelectNodes("clearingStatusItem"); if (clearingStatusItemNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in clearingStatusItemNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { clearingStatusItemIDRef = item.Attributes["id"].Name; ClearingStatusItem ob = ClearingStatusItem(); IDManager.SetID(clearingStatusItemIDRef, ob); } else if (item.Attributes.ToString() == "href") { clearingStatusItemIDRef = item.Attributes["href"].Name; } else { clearingStatusItem = new ClearingStatusItem(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)); } } } }