public ReferenceBank(XmlNode xmlNode) { XmlNodeList referenceBankIdNodeList = xmlNode.SelectNodes("referenceBankId"); if (referenceBankIdNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in referenceBankIdNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { referenceBankIdIDRef = item.Attributes["id"].Name; ReferenceBankId ob = ReferenceBankId(); IDManager.SetID(referenceBankIdIDRef, ob); } else if (item.Attributes.ToString() == "href") { referenceBankIdIDRef = item.Attributes["href"].Name; } else { referenceBankId = new ReferenceBankId(item); } } } XmlNodeList referenceBankNameNodeList = xmlNode.SelectNodes("referenceBankName"); if (referenceBankNameNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in referenceBankNameNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { referenceBankNameIDRef = item.Attributes["id"].Name; XsdTypeString ob = XsdTypeString(); IDManager.SetID(referenceBankNameIDRef, ob); } else if (item.Attributes.ToString() == "href") { referenceBankNameIDRef = item.Attributes["href"].Name; } else { referenceBankName = new XsdTypeString(item); } } } }
public ReferenceBank(XmlNode xmlNode) { XmlNode referenceBankIdNode = xmlNode.SelectSingleNode("referenceBankId"); if (referenceBankIdNode != null) { if (referenceBankIdNode.Attributes["href"] != null || referenceBankIdNode.Attributes["id"] != null) { if (referenceBankIdNode.Attributes["id"] != null) { referenceBankIdIDRef_ = referenceBankIdNode.Attributes["id"].Value; ReferenceBankId ob = new ReferenceBankId(referenceBankIdNode); IDManager.SetID(referenceBankIdIDRef_, ob); } else if (referenceBankIdNode.Attributes["href"] != null) { referenceBankIdIDRef_ = referenceBankIdNode.Attributes["href"].Value; } else { referenceBankId_ = new ReferenceBankId(referenceBankIdNode); } } else { referenceBankId_ = new ReferenceBankId(referenceBankIdNode); } } XmlNode referenceBankNameNode = xmlNode.SelectSingleNode("referenceBankName"); if (referenceBankNameNode != null) { if (referenceBankNameNode.Attributes["href"] != null || referenceBankNameNode.Attributes["id"] != null) { if (referenceBankNameNode.Attributes["id"] != null) { referenceBankNameIDRef_ = referenceBankNameNode.Attributes["id"].Value; XsdTypeString ob = new XsdTypeString(referenceBankNameNode); IDManager.SetID(referenceBankNameIDRef_, ob); } else if (referenceBankNameNode.Attributes["href"] != null) { referenceBankNameIDRef_ = referenceBankNameNode.Attributes["href"].Value; } else { referenceBankName_ = new XsdTypeString(referenceBankNameNode); } } else { referenceBankName_ = new XsdTypeString(referenceBankNameNode); } } }
public ReferenceBank(XmlNode xmlNode) { XmlNodeList referenceBankIdNodeList = xmlNode.SelectNodes("referenceBankId"); if (referenceBankIdNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in referenceBankIdNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { referenceBankIdIDRef = item.Attributes["id"].Name; ReferenceBankId ob = ReferenceBankId(); IDManager.SetID(referenceBankIdIDRef, ob); } else if (item.Attributes.ToString() == "href") { referenceBankIdIDRef = item.Attributes["href"].Name; } else { referenceBankId = new ReferenceBankId(item); } } } XmlNodeList referenceBankNameNodeList = xmlNode.SelectNodes("referenceBankName"); if (referenceBankNameNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in referenceBankNameNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { referenceBankNameIDRef = item.Attributes["id"].Name; XsdTypeString ob = XsdTypeString(); IDManager.SetID(referenceBankNameIDRef, ob); } else if (item.Attributes.ToString() == "href") { referenceBankNameIDRef = item.Attributes["href"].Name; } else { referenceBankName = new XsdTypeString(item); } } } }