187 references to Rss20Constants
System.ServiceModel.Syndication (187)
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (1)
54writer.WriteStartElement(Rss20Constants.ExtensionWrapperTag);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (150)
14[XmlRoot(ElementName = Rss20Constants.RssTag, Namespace = Rss20Constants.Rss20Namespace)] 17private static readonly XmlQualifiedName s_rss20Domain = new XmlQualifiedName(Rss20Constants.DomainTag, string.Empty); 18private static readonly XmlQualifiedName s_rss20Length = new XmlQualifiedName(Rss20Constants.LengthTag, string.Empty); 19private static readonly XmlQualifiedName s_rss20Type = new XmlQualifiedName(Rss20Constants.TypeTag, string.Empty); 20private static readonly XmlQualifiedName s_rss20Url = new XmlQualifiedName(Rss20Constants.UrlTag, string.Empty); 81return reader.IsStartElement(Rss20Constants.RssTag, Rss20Constants.Rss20Namespace); 123writer.WriteStartElement(Rss20Constants.RssTag, Rss20Constants.Rss20Namespace); 174while (reader.IsStartElement(Rss20Constants.ItemTag, Rss20Constants.Rss20Namespace)) 184writer.WriteStartElement(Rss20Constants.ItemTag, Rss20Constants.Rss20Namespace); 247Uri uri = UriFromString(uriParser, uriString, UriKind.RelativeOrAbsolute, Rss20Constants.LinkTag, Rss20Constants.Rss20Namespace, reader); 280if (name == Rss20Constants.DomainTag && ns == Rss20Constants.Rss20Namespace) 293reader.ReadStartElement(Rss20Constants.CategoryTag, Rss20Constants.Rss20Namespace); 352if (reader.IsStartElement(Rss20Constants.TitleTag, Rss20Constants.Rss20Namespace)) 356else if (reader.IsStartElement(Rss20Constants.LinkTag, Rss20Constants.Rss20Namespace)) 361else if (reader.IsStartElement(Rss20Constants.DescriptionTag, Rss20Constants.Rss20Namespace)) 365else if (reader.IsStartElement(Rss20Constants.AuthorTag, Rss20Constants.Rss20Namespace)) 369else if (reader.IsStartElement(Rss20Constants.CategoryTag, Rss20Constants.Rss20Namespace)) 373else if (reader.IsStartElement(Rss20Constants.EnclosureTag, Rss20Constants.Rss20Namespace)) 377else if (reader.IsStartElement(Rss20Constants.GuidTag, Rss20Constants.Rss20Namespace)) 380string permalinkString = reader.GetAttribute(Rss20Constants.IsPermaLinkTag, Rss20Constants.Rss20Namespace); 390fallbackAlternateLinkLocalName = Rss20Constants.GuidTag; 391fallbackAlternateLinkNamespace = Rss20Constants.Rss20Namespace; 394else if (reader.IsStartElement(Rss20Constants.PubDateTag, Rss20Constants.Rss20Namespace)) 415else if (reader.IsStartElement(Rss20Constants.SourceTag, Rss20Constants.Rss20Namespace)) 429if (name == Rss20Constants.UrlTag && ns == Rss20Constants.Rss20Namespace) 431feed.Links.Add(SyndicationLink.CreateSelfLink(UriFromString(val, UriKind.RelativeOrAbsolute, Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, reader))); 504RelationshipType = Rss20Constants.EnclosureTag 523if (name == Rss20Constants.UrlTag && ns == Rss20Constants.Rss20Namespace) 525link.Uri = UriFromString(val, UriKind.RelativeOrAbsolute, Rss20Constants.EnclosureTag, Rss20Constants.Rss20Namespace, reader); 527else if (name == Rss20Constants.TypeTag && ns == Rss20Constants.Rss20Namespace) 531else if (name == Rss20Constants.LengthTag && ns == Rss20Constants.Rss20Namespace) 544reader.ReadStartElement(Rss20Constants.EnclosureTag, Rss20Constants.Rss20Namespace); 608string version = reader.GetAttribute(Rss20Constants.VersionTag, Rss20Constants.Rss20Namespace); 609if (version != Rss20Constants.Version) 661reader.ReadStartElement(Rss20Constants.ChannelTag, Rss20Constants.Rss20Namespace); 671if (reader.IsStartElement(Rss20Constants.TitleTag, Rss20Constants.Rss20Namespace)) 675else if (reader.IsStartElement(Rss20Constants.LinkTag, Rss20Constants.Rss20Namespace)) 679else if (reader.IsStartElement(Rss20Constants.DescriptionTag, Rss20Constants.Rss20Namespace)) 683else if (reader.IsStartElement(Rss20Constants.LanguageTag, Rss20Constants.Rss20Namespace)) 687else if (reader.IsStartElement(Rss20Constants.CopyrightTag, Rss20Constants.Rss20Namespace)) 691else if (reader.IsStartElement(Rss20Constants.ManagingEditorTag, Rss20Constants.Rss20Namespace)) 695else if (reader.IsStartElement(Rss20Constants.LastBuildDateTag, Rss20Constants.Rss20Namespace)) 716else if (reader.IsStartElement(Rss20Constants.CategoryTag, Rss20Constants.Rss20Namespace)) 720else if (reader.IsStartElement(Rss20Constants.GeneratorTag, Rss20Constants.Rss20Namespace)) 724else if (reader.IsStartElement(Rss20Constants.ImageTag, Rss20Constants.Rss20Namespace)) 729if (reader.IsStartElement(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace)) 731result.ImageUrl = UriFromString(reader.ReadElementString(), UriKind.RelativeOrAbsolute, Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, reader); 741else if (reader.IsStartElement(Rss20Constants.ItemTag, Rss20Constants.Rss20Namespace)) 806writer.WriteStartElement(Rss20Constants.LinkTag, Rss20Constants.Rss20Namespace); 823writer.WriteStartElement(Rss20Constants.CategoryTag, Rss20Constants.Rss20Namespace); 827writer.WriteAttributeString(Rss20Constants.DomainTag, Rss20Constants.Rss20Namespace, category.Scheme); 844writer.WriteAttributeString(Rss20Constants.VersionTag, Rss20Constants.Version); 845writer.WriteStartElement(Rss20Constants.ChannelTag, Rss20Constants.Rss20Namespace); 852writer.WriteElementString(Rss20Constants.TitleTag, Rss20Constants.Rss20Namespace, title); 866writer.WriteElementString(Rss20Constants.DescriptionTag, Rss20Constants.Rss20Namespace, description); 870writer.WriteElementString(Rss20Constants.LanguageTag, Feed.Language); 875writer.WriteElementString(Rss20Constants.CopyrightTag, Rss20Constants.Rss20Namespace, Feed.Copyright.Text); 882WritePerson(writer, Rss20Constants.ManagingEditorTag, Feed.Authors[0]); 894writer.WriteStartElement(Rss20Constants.LastBuildDateTag); 906writer.WriteElementString(Rss20Constants.GeneratorTag, Feed.Generator); 919writer.WriteStartElement(Rss20Constants.ImageTag); 920writer.WriteElementString(Rss20Constants.UrlTag, FeedUtils.GetUriString(Feed.ImageUrl)); 921writer.WriteElementString(Rss20Constants.TitleTag, Rss20Constants.Rss20Namespace, title); 923writer.WriteElementString(Rss20Constants.LinkTag, Rss20Constants.Rss20Namespace, imgAlternateLink); 930writer.WriteElementString(Rss20Constants.DocumentationTag, Feed.InternalDocumentation.Uri.ToString()); 935writer.WriteElementString(Rss20Constants.TimeToLiveTag, ((int)Feed.InternalTimeToLive.Value.TotalMinutes).ToString()); 940writer.WriteStartElement(Rss20Constants.SkipHoursTag); 944writer.WriteElementString(Rss20Constants.HourTag, hour.ToString()); 952writer.WriteStartElement(Rss20Constants.SkipDaysTag); 956writer.WriteElementString(Rss20Constants.DayTag, day); 964writer.WriteStartElement(Rss20Constants.TextInputTag); 966writer.WriteElementString(Rss20Constants.DescriptionTag, Feed.InternalTextInput.Description); 967writer.WriteElementString(Rss20Constants.TitleTag, Feed.InternalTextInput.Title); 968writer.WriteElementString(Rss20Constants.LinkTag, Feed.InternalTextInput.Link.GetAbsoluteUri().ToString()); 969writer.WriteElementString(Rss20Constants.NameTag, Feed.InternalTextInput.Name); 1021writer.WriteStartElement(Rss20Constants.GuidTag); 1024writer.WriteAttributeString(Rss20Constants.IsPermaLinkTag, "true"); 1028writer.WriteAttributeString(Rss20Constants.IsPermaLinkTag, "false"); 1040WritePerson(writer, Rss20Constants.AuthorTag, item.Authors[0]); 1058writer.WriteElementString(Rss20Constants.TitleTag, item.Title.Text); 1076writer.WriteElementString(Rss20Constants.DescriptionTag, Rss20Constants.Rss20Namespace, summary.Text); 1081writer.WriteStartElement(Rss20Constants.SourceTag, Rss20Constants.Rss20Namespace); 1094writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(selfLink.Uri)); 1103writer.WriteElementString(Rss20Constants.PubDateTag, Rss20Constants.Rss20Namespace, AsString(item.PublishDate)); 1111if (item.Links[i].RelationshipType == Rss20Constants.EnclosureTag) 1168writer.WriteStartElement(Rss20Constants.EnclosureTag, Rss20Constants.Rss20Namespace); 1177writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(link.Uri)); 1181writer.WriteAttributeString(Rss20Constants.TypeTag, Rss20Constants.Rss20Namespace, link.MediaType); 1185writer.WriteAttributeString(Rss20Constants.LengthTag, Rss20Constants.Rss20Namespace, link.Length.ToString(CultureInfo.InvariantCulture)); 1192writer.WriteStartElement(elementTag, Rss20Constants.Rss20Namespace); 1199[XmlRoot(ElementName = Rss20Constants.RssTag, Namespace = Rss20Constants.Rss20Namespace)]
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (8)
11[XmlRoot(ElementName = Rss20Constants.ItemTag, Namespace = Rss20Constants.Rss20Namespace)] 96return reader.IsStartElement(Rss20Constants.ItemTag, Rss20Constants.Rss20Namespace); 138writer.WriteStartElement(Rss20Constants.ItemTag, Rss20Constants.Rss20Namespace); 163[XmlRoot(ElementName = Rss20Constants.ItemTag, Namespace = Rss20Constants.Rss20Namespace)]
System\ServiceModel\Syndication\SyndicationElementExtension.cs (3)
35writer.WriteStartElement(Rss20Constants.ExtensionWrapperTag); 164reader.ReadStartElement(Rss20Constants.ExtensionWrapperTag); 204writer.WriteStartElement(Rss20Constants.ExtensionWrapperTag);
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
210writer.WriteStartElement(Rss20Constants.ExtensionWrapperTag);
System\ServiceModel\Syndication\SyndicationFeed.cs (22)
247.FirstOrDefault(e => e.OuterName == Rss20Constants.DocumentationTag && e.OuterNamespace == Rss20Constants.Rss20Namespace); 262.FirstOrDefault(e => e.OuterName == Rss20Constants.TimeToLiveTag && e.OuterNamespace == Rss20Constants.Rss20Namespace); 291.FirstOrDefault(e => e.OuterName == Rss20Constants.SkipHoursTag && e.OuterNamespace == Rss20Constants.Rss20Namespace); 302if (reader.LocalName == Rss20Constants.HourTag) 325.FirstOrDefault(e => e.OuterName == Rss20Constants.SkipDaysTag && e.OuterNamespace == Rss20Constants.Rss20Namespace); 336if (reader.LocalName == Rss20Constants.DayTag) 361.FirstOrDefault(e => e.OuterName == Rss20Constants.TextInputTag && e.OuterNamespace == Rss20Constants.Rss20Namespace); 377case Rss20Constants.DescriptionTag: 381case Rss20Constants.TitleTag: 385case Rss20Constants.LinkTag: 389case Rss20Constants.NameTag: 501if (ns == Rss20Constants.Rss20Namespace) 505case Rss20Constants.DocumentationTag: 508case Rss20Constants.TimeToLiveTag: 511case Rss20Constants.TextInputTag: 514case Rss20Constants.SkipHoursTag: 517case Rss20Constants.SkipDaysTag:
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
495extWriter.WriteStartElement(Rss20Constants.ExtensionWrapperTag);
System\ServiceModel\Syndication\SyndicationLink.cs (1)
94return new SyndicationLink(uri, Rss20Constants.EnclosureTag, null, mediaType, length);