private void ParseNotificationHelper(ParseResult result, XContainer parentNode) { XElement node = parentNode.FirstElementOrDefault("notification"); if (node == null) { result.AddError("notification element was not found", ErrorPositionInfo.Default); return; } result.Notification = new Notification(FeatureSet.GetExperimental()); try { result.Notification.Parse(result, node); } catch (IncompleteElementException) { } }
public ParseResult ParseNotification(string text) { return(Parse(text, NotificationType.Notification, FeatureSet.GetExperimental())); }