public UnderylingResult(XmlNode xmlNode) : base(xmlNode) { XmlNode typeNode = xmlNode.SelectSingleNode("type"); if (typeNode != null) { if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) { if (typeNode.Attributes["id"] != null) { typeIDRef_ = typeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(typeNode); IDManager.SetID(typeIDRef_, ob); } else if (typeNode.Attributes["href"] != null) { typeIDRef_ = typeNode.Attributes["href"].Value; } else { type_ = new XsdTypeToken(typeNode); } } else { type_ = new XsdTypeToken(typeNode); } } XmlNode gbmGreekInfoResultNode = xmlNode.SelectSingleNode("gbmGreekInfoResult"); if (gbmGreekInfoResultNode != null) { if (gbmGreekInfoResultNode.Attributes["href"] != null || gbmGreekInfoResultNode.Attributes["id"] != null) { if (gbmGreekInfoResultNode.Attributes["id"] != null) { gbmGreekInfoResultIDRef_ = gbmGreekInfoResultNode.Attributes["id"].Value; GbmGreekInfoResult ob = new GbmGreekInfoResult(gbmGreekInfoResultNode); IDManager.SetID(gbmGreekInfoResultIDRef_, ob); } else if (gbmGreekInfoResultNode.Attributes["href"] != null) { gbmGreekInfoResultIDRef_ = gbmGreekInfoResultNode.Attributes["href"].Value; } else { gbmGreekInfoResult_ = new GbmGreekInfoResult(gbmGreekInfoResultNode); } } else { gbmGreekInfoResult_ = new GbmGreekInfoResult(gbmGreekInfoResultNode); } } XmlNode hullWhiteGreekInfoResultNode = xmlNode.SelectSingleNode("hullWhiteGreekInfoResult"); if (hullWhiteGreekInfoResultNode != null) { if (hullWhiteGreekInfoResultNode.Attributes["href"] != null || hullWhiteGreekInfoResultNode.Attributes["id"] != null) { if (hullWhiteGreekInfoResultNode.Attributes["id"] != null) { hullWhiteGreekInfoResultIDRef_ = hullWhiteGreekInfoResultNode.Attributes["id"].Value; HullWhiteGreekInfoResult ob = new HullWhiteGreekInfoResult(hullWhiteGreekInfoResultNode); IDManager.SetID(hullWhiteGreekInfoResultIDRef_, ob); } else if (hullWhiteGreekInfoResultNode.Attributes["href"] != null) { hullWhiteGreekInfoResultIDRef_ = hullWhiteGreekInfoResultNode.Attributes["href"].Value; } else { hullWhiteGreekInfoResult_ = new HullWhiteGreekInfoResult(hullWhiteGreekInfoResultNode); } } else { hullWhiteGreekInfoResult_ = new HullWhiteGreekInfoResult(hullWhiteGreekInfoResultNode); } } }
public UnderylingResult(XmlNode xmlNode) : base(xmlNode) { XmlNode typeNode = xmlNode.SelectSingleNode("type"); if (typeNode != null) { if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) { if (typeNode.Attributes["id"] != null) { typeIDRef_ = typeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(typeNode); IDManager.SetID(typeIDRef_, ob); } else if (typeNode.Attributes["href"] != null) { typeIDRef_ = typeNode.Attributes["href"].Value; } else { type_ = new XsdTypeToken(typeNode); } } else { type_ = new XsdTypeToken(typeNode); } } XmlNode gbmGreekInfoResultNode = xmlNode.SelectSingleNode("gbmGreekInfoResult"); if (gbmGreekInfoResultNode != null) { if (gbmGreekInfoResultNode.Attributes["href"] != null || gbmGreekInfoResultNode.Attributes["id"] != null) { if (gbmGreekInfoResultNode.Attributes["id"] != null) { gbmGreekInfoResultIDRef_ = gbmGreekInfoResultNode.Attributes["id"].Value; GbmGreekInfoResult ob = new GbmGreekInfoResult(gbmGreekInfoResultNode); IDManager.SetID(gbmGreekInfoResultIDRef_, ob); } else if (gbmGreekInfoResultNode.Attributes["href"] != null) { gbmGreekInfoResultIDRef_ = gbmGreekInfoResultNode.Attributes["href"].Value; } else { gbmGreekInfoResult_ = new GbmGreekInfoResult(gbmGreekInfoResultNode); } } else { gbmGreekInfoResult_ = new GbmGreekInfoResult(gbmGreekInfoResultNode); } } XmlNode hullWhiteGreekInfoResultNode = xmlNode.SelectSingleNode("hullWhiteGreekInfoResult"); if (hullWhiteGreekInfoResultNode != null) { if (hullWhiteGreekInfoResultNode.Attributes["href"] != null || hullWhiteGreekInfoResultNode.Attributes["id"] != null) { if (hullWhiteGreekInfoResultNode.Attributes["id"] != null) { hullWhiteGreekInfoResultIDRef_ = hullWhiteGreekInfoResultNode.Attributes["id"].Value; HullWhiteGreekInfoResult ob = new HullWhiteGreekInfoResult(hullWhiteGreekInfoResultNode); IDManager.SetID(hullWhiteGreekInfoResultIDRef_, ob); } else if (hullWhiteGreekInfoResultNode.Attributes["href"] != null) { hullWhiteGreekInfoResultIDRef_ = hullWhiteGreekInfoResultNode.Attributes["href"].Value; } else { hullWhiteGreekInfoResult_ = new HullWhiteGreekInfoResult(hullWhiteGreekInfoResultNode); } } else { hullWhiteGreekInfoResult_ = new HullWhiteGreekInfoResult(hullWhiteGreekInfoResultNode); } } }