public Underlyer(XmlNode xmlNode) { XmlNode singleUnderlyerNode = xmlNode.SelectSingleNode("singleUnderlyer"); if (singleUnderlyerNode != null) { if (singleUnderlyerNode.Attributes["href"] != null || singleUnderlyerNode.Attributes["id"] != null) { if (singleUnderlyerNode.Attributes["id"] != null) { singleUnderlyerIDRef_ = singleUnderlyerNode.Attributes["id"].Value; SingleUnderlyer ob = new SingleUnderlyer(singleUnderlyerNode); IDManager.SetID(singleUnderlyerIDRef_, ob); } else if (singleUnderlyerNode.Attributes["href"] != null) { singleUnderlyerIDRef_ = singleUnderlyerNode.Attributes["href"].Value; } else { singleUnderlyer_ = new SingleUnderlyer(singleUnderlyerNode); } } else { singleUnderlyer_ = new SingleUnderlyer(singleUnderlyerNode); } } XmlNode basketNode = xmlNode.SelectSingleNode("basket"); if (basketNode != null) { if (basketNode.Attributes["href"] != null || basketNode.Attributes["id"] != null) { if (basketNode.Attributes["id"] != null) { basketIDRef_ = basketNode.Attributes["id"].Value; Basket ob = new Basket(basketNode); IDManager.SetID(basketIDRef_, ob); } else if (basketNode.Attributes["href"] != null) { basketIDRef_ = basketNode.Attributes["href"].Value; } else { basket_ = new Basket(basketNode); } } else { basket_ = new Basket(basketNode); } } }
public Underlyer(XmlNode xmlNode) { XmlNodeList singleUnderlyerNodeList = xmlNode.SelectNodes("singleUnderlyer"); if (singleUnderlyerNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in singleUnderlyerNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { singleUnderlyerIDRef = item.Attributes["id"].Name; SingleUnderlyer ob = SingleUnderlyer(); IDManager.SetID(singleUnderlyerIDRef, ob); } else if (item.Attributes.ToString() == "href") { singleUnderlyerIDRef = item.Attributes["href"].Name; } else { singleUnderlyer = new SingleUnderlyer(item); } } } XmlNodeList basketNodeList = xmlNode.SelectNodes("basket"); if (basketNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in basketNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { basketIDRef = item.Attributes["id"].Name; Basket ob = Basket(); IDManager.SetID(basketIDRef, ob); } else if (item.Attributes.ToString() == "href") { basketIDRef = item.Attributes["href"].Name; } else { basket = new Basket(item); } } } }
public Underlyer(XmlNode xmlNode) { XmlNodeList singleUnderlyerNodeList = xmlNode.SelectNodes("singleUnderlyer"); if (singleUnderlyerNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in singleUnderlyerNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { singleUnderlyerIDRef = item.Attributes["id"].Name; SingleUnderlyer ob = SingleUnderlyer(); IDManager.SetID(singleUnderlyerIDRef, ob); } else if (item.Attributes.ToString() == "href") { singleUnderlyerIDRef = item.Attributes["href"].Name; } else { singleUnderlyer = new SingleUnderlyer(item); } } } XmlNodeList basketNodeList = xmlNode.SelectNodes("basket"); if (basketNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in basketNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { basketIDRef = item.Attributes["id"].Name; Basket ob = Basket(); IDManager.SetID(basketIDRef, ob); } else if (item.Attributes.ToString() == "href") { basketIDRef = item.Attributes["href"].Name; } else { basket = new Basket(item); } } } }