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