197 references to Atom10Constants
System.ServiceModel.Syndication (197)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (144)
16
[XmlRoot(ElementName =
Atom10Constants
.FeedTag, Namespace =
Atom10Constants
.Atom10Namespace)]
21
private static readonly XmlQualifiedName s_atom10Href = new XmlQualifiedName(
Atom10Constants
.HrefTag, string.Empty);
22
private static readonly XmlQualifiedName s_atom10Label = new XmlQualifiedName(
Atom10Constants
.LabelTag, string.Empty);
23
private static readonly XmlQualifiedName s_atom10Length = new XmlQualifiedName(
Atom10Constants
.LengthTag, string.Empty);
24
private static readonly XmlQualifiedName s_atom10Relative = new XmlQualifiedName(
Atom10Constants
.RelativeTag, string.Empty);
25
private static readonly XmlQualifiedName s_atom10Scheme = new XmlQualifiedName(
Atom10Constants
.SchemeTag, string.Empty);
26
private static readonly XmlQualifiedName s_atom10Term = new XmlQualifiedName(
Atom10Constants
.TermTag, string.Empty);
27
private static readonly XmlQualifiedName s_atom10Title = new XmlQualifiedName(
Atom10Constants
.TitleTag, string.Empty);
28
private static readonly XmlQualifiedName s_atom10Type = new XmlQualifiedName(
Atom10Constants
.TypeTag, string.Empty);
81
return reader.IsStartElement(
Atom10Constants
.FeedTag,
Atom10Constants
.Atom10Namespace);
123
writer.WriteStartElement(
Atom10Constants
.FeedTag,
Atom10Constants
.Atom10Namespace);
136
if (reader.LocalName ==
Atom10Constants
.TermTag && reader.NamespaceURI == string.Empty)
140
else if (reader.LocalName ==
Atom10Constants
.SchemeTag && reader.NamespaceURI == string.Empty)
144
else if (reader.LocalName ==
Atom10Constants
.LabelTag && reader.NamespaceURI == string.Empty)
207
string type = reader.GetAttribute(
Atom10Constants
.TypeTag);
213
writer.WriteStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace);
218
writer.WriteAttributeString(
Atom10Constants
.TermTag, categoryName);
222
writer.WriteAttributeString(
Atom10Constants
.LabelTag, category.Label);
226
writer.WriteAttributeString(
Atom10Constants
.SchemeTag, category.Scheme);
239
if (reader.IsStartElement(
Atom10Constants
.AuthorTag,
Atom10Constants
.Atom10Namespace))
243
else if (reader.IsStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace))
247
else if (reader.IsStartElement(
Atom10Constants
.ContributorTag,
Atom10Constants
.Atom10Namespace))
251
else if (reader.IsStartElement(
Atom10Constants
.GeneratorTag,
Atom10Constants
.Atom10Namespace))
255
else if (reader.IsStartElement(
Atom10Constants
.IdTag,
Atom10Constants
.Atom10Namespace))
259
else if (reader.IsStartElement(
Atom10Constants
.LinkTag,
Atom10Constants
.Atom10Namespace))
263
else if (reader.IsStartElement(
Atom10Constants
.LogoTag,
Atom10Constants
.Atom10Namespace))
265
result.ImageUrl = UriFromString(reader.ReadElementString(), UriKind.RelativeOrAbsolute,
Atom10Constants
.LogoTag,
Atom10Constants
.Atom10Namespace, reader);
267
else if (reader.IsStartElement(
Atom10Constants
.RightsTag,
Atom10Constants
.Atom10Namespace))
271
else if (reader.IsStartElement(
Atom10Constants
.SubtitleTag,
Atom10Constants
.Atom10Namespace))
275
else if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
279
else if (reader.IsStartElement(
Atom10Constants
.UpdatedTag,
Atom10Constants
.Atom10Namespace))
303
if (reader.IsStartElement(
Atom10Constants
.AuthorTag,
Atom10Constants
.Atom10Namespace))
307
else if (reader.IsStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace))
311
else if (reader.IsStartElement(
Atom10Constants
.ContentTag,
Atom10Constants
.Atom10Namespace))
315
else if (reader.IsStartElement(
Atom10Constants
.ContributorTag,
Atom10Constants
.Atom10Namespace))
319
else if (reader.IsStartElement(
Atom10Constants
.IdTag,
Atom10Constants
.Atom10Namespace))
323
else if (reader.IsStartElement(
Atom10Constants
.LinkTag,
Atom10Constants
.Atom10Namespace))
327
else if (reader.IsStartElement(
Atom10Constants
.PublishedTag,
Atom10Constants
.Atom10Namespace))
342
else if (reader.IsStartElement(
Atom10Constants
.RightsTag,
Atom10Constants
.Atom10Namespace))
346
else if (reader.IsStartElement(
Atom10Constants
.SourceFeedTag,
Atom10Constants
.Atom10Namespace))
352
else if (reader.IsStartElement(
Atom10Constants
.SummaryTag,
Atom10Constants
.Atom10Namespace))
356
else if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
360
else if (reader.IsStartElement(
Atom10Constants
.UpdatedTag,
Atom10Constants
.Atom10Namespace))
384
content?.WriteTo(writer, elementName,
Atom10Constants
.Atom10Namespace);
391
writer.WriteElementString(elementName,
Atom10Constants
.Atom10Namespace, value);
400
WritePersonTo(writer, p,
Atom10Constants
.AuthorTag);
409
WritePersonTo(writer, p,
Atom10Constants
.ContributorTag);
421
WriteElement(writer,
Atom10Constants
.UpdatedTag, AsString(lastUpdatedTime));
430
WritePersonTo(writer, p,
Atom10Constants
.AuthorTag);
444
WritePersonTo(writer, p,
Atom10Constants
.ContributorTag);
454
writer.WriteElementString(
Atom10Constants
.UpdatedTag,
455
Atom10Constants
.Atom10Namespace,
461
writer.WriteStartElement(
Atom10Constants
.LinkTag,
Atom10Constants
.Atom10Namespace);
470
writer.WriteAttributeString(
Atom10Constants
.RelativeTag, link.RelationshipType);
474
writer.WriteAttributeString(
Atom10Constants
.TypeTag, link.MediaType);
478
writer.WriteAttributeString(
Atom10Constants
.TitleTag, link.Title);
482
writer.WriteAttributeString(
Atom10Constants
.LengthTag, link.Length.ToString(CultureInfo.InvariantCulture));
486
writer.WriteAttributeString(
Atom10Constants
.HrefTag, FeedUtils.GetUriString(link.Uri));
522
while (reader.IsStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace))
532
writer.WriteStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace);
553
type =
Atom10Constants
.PlaintextType;
558
Atom10Constants
.PlaintextType => TextSyndicationContentKind.Plaintext,
559
Atom10Constants
.HtmlType => TextSyndicationContentKind.Html,
560
Atom10Constants
.XHtmlType => TextSyndicationContentKind.XHtml,
569
if (reader.LocalName ==
Atom10Constants
.TypeTag && reader.NamespaceURI == string.Empty)
639
string type = reader.GetAttribute(
Atom10Constants
.TypeTag, string.Empty);
648
type =
Atom10Constants
.PlaintextType;
650
string src = reader.GetAttribute(
Atom10Constants
.SourceTag, string.Empty);
652
if (string.IsNullOrEmpty(src) && type !=
Atom10Constants
.PlaintextType && type !=
Atom10Constants
.HtmlType && type !=
Atom10Constants
.XHtmlType)
659
result = new UrlSyndicationContent(UriFromString(src, UriKind.RelativeOrAbsolute,
Atom10Constants
.ContentTag,
Atom10Constants
.Atom10Namespace, reader), type);
665
if (reader.LocalName ==
Atom10Constants
.TypeTag && reader.NamespaceURI == string.Empty)
669
else if (reader.LocalName ==
Atom10Constants
.SourceTag && reader.NamespaceURI == string.Empty)
761
else if (reader.IsStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace) && !isSourceFeed)
920
else if (reader.LocalName ==
Atom10Constants
.TypeTag && reader.NamespaceURI == string.Empty)
924
else if (reader.LocalName ==
Atom10Constants
.RelativeTag && reader.NamespaceURI == string.Empty)
928
else if (reader.LocalName ==
Atom10Constants
.TitleTag && reader.NamespaceURI == string.Empty)
932
else if (reader.LocalName ==
Atom10Constants
.LengthTag && reader.NamespaceURI == string.Empty)
936
else if (reader.LocalName ==
Atom10Constants
.HrefTag && reader.NamespaceURI == string.Empty)
989
link.Uri = (val != null) ? UriFromString(val, UriKind.RelativeOrAbsolute,
Atom10Constants
.LinkTag,
Atom10Constants
.Atom10Namespace, reader) : null;
1052
if (reader.IsStartElement(
Atom10Constants
.NameTag,
Atom10Constants
.Atom10Namespace))
1056
else if (reader.IsStartElement(
Atom10Constants
.UriTag,
Atom10Constants
.Atom10Namespace))
1060
else if (reader.IsStartElement(
Atom10Constants
.EmailTag,
Atom10Constants
.Atom10Namespace))
1132
WriteContentTo(writer,
Atom10Constants
.TitleTag, title);
1133
WriteContentTo(writer,
Atom10Constants
.SubtitleTag, feed.Description);
1139
WriteElement(writer,
Atom10Constants
.IdTag, id);
1140
WriteContentTo(writer,
Atom10Constants
.RightsTag, feed.Copyright);
1145
WriteElement(writer,
Atom10Constants
.LogoTag, feed.ImageUrl.ToString());
1149
WriteElement(writer,
Atom10Constants
.GeneratorTag, feed.Generator);
1174
WriteElement(dictWriter,
Atom10Constants
.IdTag, id);
1177
WriteContentTo(dictWriter,
Atom10Constants
.TitleTag, title);
1178
WriteContentTo(dictWriter,
Atom10Constants
.SummaryTag, item.Summary);
1181
dictWriter.WriteElementString(
Atom10Constants
.PublishedTag,
1182
Atom10Constants
.Atom10Namespace,
1193
WriteContentTo(dictWriter,
Atom10Constants
.ContentTag, item.Content);
1194
WriteContentTo(dictWriter,
Atom10Constants
.RightsTag, item.Copyright);
1197
dictWriter.WriteStartElement(
Atom10Constants
.SourceFeedTag,
Atom10Constants
.Atom10Namespace);
1206
writer.WriteStartElement(elementName,
Atom10Constants
.Atom10Namespace);
1208
WriteElement(writer,
Atom10Constants
.NameTag, p.Name);
1211
writer.WriteElementString(
Atom10Constants
.UriTag,
Atom10Constants
.Atom10Namespace, p.Uri);
1215
writer.WriteElementString(
Atom10Constants
.EmailTag,
Atom10Constants
.Atom10Namespace, p.Email);
1222
[XmlRoot(ElementName =
Atom10Constants
.FeedTag, Namespace =
Atom10Constants
.Atom10Namespace)]
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (8)
11
[XmlRoot(ElementName =
Atom10Constants
.EntryTag, Namespace =
Atom10Constants
.Atom10Namespace)]
73
return reader.IsStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace);
115
writer.WriteStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace);
140
[XmlRoot(ElementName =
Atom10Constants
.EntryTag, Namespace =
Atom10Constants
.Atom10Namespace)]
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
180
writer.WriteAttributeString(
Atom10Constants
.Atom10Prefix, Atom10FeedFormatter.XmlNsNs,
Atom10Constants
.Atom10Namespace);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (14)
188
else if (reader.LocalName ==
Atom10Constants
.SchemeTag && reader.NamespaceURI == string.Empty)
220
if (reader.IsStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace))
317
writer.WriteAttributeString(
Atom10Constants
.SchemeTag, categories.Scheme);
394
if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
542
if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
580
collection.Title?.WriteTo(writer,
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace);
596
writer.WriteAttributeString(
Atom10Constants
.Atom10Prefix, Atom10FeedFormatter.XmlNsNs,
Atom10Constants
.Atom10Namespace);
625
workspace.Title?.WriteTo(writer,
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (11)
226
RelationshipType =
Atom10Constants
.AlternateTag
842
writer.WriteAttributeString("xmlns",
Atom10Constants
.Atom10Prefix, null,
Atom10Constants
.Atom10Namespace);
857
if (Feed.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag)
976
Atom10FeedFormatter.WriteElement(writer,
Atom10Constants
.IdTag, Feed.Id);
982
if (Feed.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag && isFirstAlternateLink)
1009
if (item.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag)
1086
if (item.SourceFeed.Links[i].RelationshipType ==
Atom10Constants
.SelfTag)
1120
else if (item.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag)
1144
Atom10FeedFormatter.WriteContentTo(writer,
Atom10Constants
.RightsTag, item.Copyright);
1151
Atom10FeedFormatter.WriteContentTo(writer,
Atom10Constants
.ContentTag, item.Content);
System\ServiceModel\Syndication\SyndicationContent.cs (5)
50
return new XmlSyndicationContent(
Atom10Constants
.XmlMediaType, dataContractObject, (DataContractSerializer)null);
55
return new XmlSyndicationContent(
Atom10Constants
.XmlMediaType, dataContractObject, dataContractSerializer);
65
return new XmlSyndicationContent(
Atom10Constants
.XmlMediaType, xmlSerializerObject, serializer);
83
writer.WriteAttributeString(
Atom10Constants
.TypeTag, string.Empty, Type);
88
if (key.Name ==
Atom10Constants
.TypeTag && key.Namespace == string.Empty)
System\ServiceModel\Syndication\SyndicationLink.cs (2)
89
return new SyndicationLink(uri,
Atom10Constants
.AlternateTag, null, mediaType, 0);
104
return new SyndicationLink(uri,
Atom10Constants
.SelfTag, null, mediaType, 0);
System\ServiceModel\Syndication\TextSyndicationContent.cs (3)
41
TextSyndicationContentKind.Html =>
Atom10Constants
.HtmlType,
42
TextSyndicationContentKind.XHtml =>
Atom10Constants
.XHtmlType,
43
_ =>
Atom10Constants
.PlaintextType,
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
40
writer.WriteAttributeString(
Atom10Constants
.SourceTag, string.Empty, FeedUtils.GetUriString(Url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (7)
35
if (name ==
Atom10Constants
.TypeTag && ns == string.Empty)
46
_type = string.IsNullOrEmpty(_type) ?
Atom10Constants
.XmlMediaType : _type;
58
_type = string.IsNullOrEmpty(type) ?
Atom10Constants
.XmlMediaType : type;
64
_type = string.IsNullOrEmpty(type) ?
Atom10Constants
.XmlMediaType : type;
75
_type = string.IsNullOrEmpty(type) ?
Atom10Constants
.XmlMediaType : type;
176
WriteTo(writer,
Atom10Constants
.ContentTag,
Atom10Constants
.Atom10Namespace);