public TradeTimestamp(XmlNode xmlNode) { XmlNodeList typeNodeList = xmlNode.SelectNodes("type"); if (typeNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in typeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { typeIDRef = item.Attributes["id"].Name; TimestampTypeScheme ob = TimestampTypeScheme(); IDManager.SetID(typeIDRef, ob); } else if (item.Attributes.ToString() == "href") { typeIDRef = item.Attributes["href"].Name; } else { type = new TimestampTypeScheme(item); } } } XmlNodeList valueNodeList = xmlNode.SelectNodes("value"); if (valueNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in valueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { valueIDRef = item.Attributes["id"].Name; XsdTypeDateTime ob = XsdTypeDateTime(); IDManager.SetID(valueIDRef, ob); } else if (item.Attributes.ToString() == "href") { valueIDRef = item.Attributes["href"].Name; } else { value = new XsdTypeDateTime(item); } } } }
public TradeTimestamp(XmlNode xmlNode) { XmlNodeList typeNodeList = xmlNode.SelectNodes("type"); if (typeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in typeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { typeIDRef = item.Attributes["id"].Name; TimestampTypeScheme ob = TimestampTypeScheme(); IDManager.SetID(typeIDRef, ob); } else if (item.Attributes.ToString() == "href") { typeIDRef = item.Attributes["href"].Name; } else { type = new TimestampTypeScheme(item); } } } XmlNodeList valueNodeList = xmlNode.SelectNodes("value"); if (valueNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in valueNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { valueIDRef = item.Attributes["id"].Name; XsdTypeDateTime ob = XsdTypeDateTime(); IDManager.SetID(valueIDRef, ob); } else if (item.Attributes.ToString() == "href") { valueIDRef = item.Attributes["href"].Name; } else { value = new XsdTypeDateTime(item); } } } }
public TradeTimestamp(XmlNode 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; TimestampTypeScheme ob = new TimestampTypeScheme(typeNode); IDManager.SetID(typeIDRef_, ob); } else if (typeNode.Attributes["href"] != null) { typeIDRef_ = typeNode.Attributes["href"].Value; } else { type_ = new TimestampTypeScheme(typeNode); } } else { type_ = new TimestampTypeScheme(typeNode); } } XmlNode valueNode = xmlNode.SelectSingleNode("value"); if (valueNode != null) { if (valueNode.Attributes["href"] != null || valueNode.Attributes["id"] != null) { if (valueNode.Attributes["id"] != null) { valueIDRef_ = valueNode.Attributes["id"].Value; XsdTypeDateTime ob = new XsdTypeDateTime(valueNode); IDManager.SetID(valueIDRef_, ob); } else if (valueNode.Attributes["href"] != null) { valueIDRef_ = valueNode.Attributes["href"].Value; } else { value_ = new XsdTypeDateTime(valueNode); } } else { value_ = new XsdTypeDateTime(valueNode); } } }