public BrokerConfirmation(XmlNode xmlNode) { XmlNode brokerConfirmationTypeNode = xmlNode.SelectSingleNode("brokerConfirmationType"); if (brokerConfirmationTypeNode != null) { if (brokerConfirmationTypeNode.Attributes["href"] != null || brokerConfirmationTypeNode.Attributes["id"] != null) { if (brokerConfirmationTypeNode.Attributes["id"] != null) { brokerConfirmationTypeIDRef_ = brokerConfirmationTypeNode.Attributes["id"].Value; BrokerConfirmationType ob = new BrokerConfirmationType(brokerConfirmationTypeNode); IDManager.SetID(brokerConfirmationTypeIDRef_, ob); } else if (brokerConfirmationTypeNode.Attributes["href"] != null) { brokerConfirmationTypeIDRef_ = brokerConfirmationTypeNode.Attributes["href"].Value; } else { brokerConfirmationType_ = new BrokerConfirmationType(brokerConfirmationTypeNode); } } else { brokerConfirmationType_ = new BrokerConfirmationType(brokerConfirmationTypeNode); } } }
public BrokerConfirmation(XmlNode xmlNode) { XmlNodeList brokerConfirmationTypeNodeList = xmlNode.SelectNodes("brokerConfirmationType"); if (brokerConfirmationTypeNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in brokerConfirmationTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { brokerConfirmationTypeIDRef = item.Attributes["id"].Name; BrokerConfirmationType ob = BrokerConfirmationType(); IDManager.SetID(brokerConfirmationTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { brokerConfirmationTypeIDRef = item.Attributes["href"].Name; } else { brokerConfirmationType = new BrokerConfirmationType(item); } } } }
public BrokerConfirmation(XmlNode xmlNode) { XmlNodeList brokerConfirmationTypeNodeList = xmlNode.SelectNodes("brokerConfirmationType"); if (brokerConfirmationTypeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in brokerConfirmationTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { brokerConfirmationTypeIDRef = item.Attributes["id"].Name; BrokerConfirmationType ob = BrokerConfirmationType(); IDManager.SetID(brokerConfirmationTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { brokerConfirmationTypeIDRef = item.Attributes["href"].Name; } else { brokerConfirmationType = new BrokerConfirmationType(item); } } } }