public static TopicInfo GetTopicInfo(NotificationMessageHolderType msg, XmlElement rawMsg) { XmlNamespaceManager manager = EventsMainHelper.CreateNamespaceManager(rawMsg.OwnerDocument); XmlText text = null; if (msg.Topic.Any != null) { foreach (XmlNode any in msg.Topic.Any) { var current = any as XmlText; if (any != null) { text = current; break; } } } XmlNode topicNode = rawMsg.SelectSingleNode("b2:Topic", manager); string topic = text != null ? text.Value : ""; return(TopicInfo.ExtractTopicInfoPACS(topic, topicNode)); }
public static TopicInfo GetTopicInfo(NotificationMessageHolderType msg) { var rawMsg = msg.Topic.Any.First().OwnerDocument; XmlNamespaceManager manager = EventsMainHelper.CreateNamespaceManager(rawMsg); XmlText text = null; if (msg.Topic.Any != null) { foreach (XmlNode any in msg.Topic.Any) { var current = any as XmlText; if (any != null) { text = current; break; } } } string topic = text != null ? text.Value : ""; return(TopicInfo.ExtractTopicInfoPACS(topic, msg.Topic)); }