191 references to Atom10Constants
System.ServiceModel (191)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (138)
22[XmlRoot(ElementName = Atom10Constants.FeedTag, Namespace = Atom10Constants.Atom10Namespace)] 28static readonly XmlQualifiedName Atom10Href = new XmlQualifiedName(Atom10Constants.HrefTag, string.Empty); 29static readonly XmlQualifiedName Atom10Label = new XmlQualifiedName(Atom10Constants.LabelTag, string.Empty); 30static readonly XmlQualifiedName Atom10Length = new XmlQualifiedName(Atom10Constants.LengthTag, string.Empty); 31static readonly XmlQualifiedName Atom10Relative = new XmlQualifiedName(Atom10Constants.RelativeTag, string.Empty); 32static readonly XmlQualifiedName Atom10Scheme = new XmlQualifiedName(Atom10Constants.SchemeTag, string.Empty); 33static readonly XmlQualifiedName Atom10Term = new XmlQualifiedName(Atom10Constants.TermTag, string.Empty); 34static readonly XmlQualifiedName Atom10Title = new XmlQualifiedName(Atom10Constants.TitleTag, string.Empty); 35static readonly XmlQualifiedName Atom10Type = new XmlQualifiedName(Atom10Constants.TypeTag, string.Empty); 106return reader.IsStartElement(Atom10Constants.FeedTag, Atom10Constants.Atom10Namespace); 157writer.WriteStartElement(Atom10Constants.FeedTag, Atom10Constants.Atom10Namespace); 171if (reader.LocalName == Atom10Constants.TermTag && reader.NamespaceURI == string.Empty) 175else if (reader.LocalName == Atom10Constants.SchemeTag && reader.NamespaceURI == string.Empty) 179else if (reader.LocalName == Atom10Constants.LabelTag && reader.NamespaceURI == string.Empty) 250string type = reader.GetAttribute(Atom10Constants.TypeTag); 256writer.WriteStartElement(Atom10Constants.CategoryTag, Atom10Constants.Atom10Namespace); 261writer.WriteAttributeString(Atom10Constants.TermTag, categoryName); 265writer.WriteAttributeString(Atom10Constants.LabelTag, category.Label); 269writer.WriteAttributeString(Atom10Constants.SchemeTag, category.Scheme); 282if (reader.IsStartElement(Atom10Constants.AuthorTag, Atom10Constants.Atom10Namespace)) 286else if (reader.IsStartElement(Atom10Constants.CategoryTag, Atom10Constants.Atom10Namespace)) 290else if (reader.IsStartElement(Atom10Constants.ContributorTag, Atom10Constants.Atom10Namespace)) 294else if (reader.IsStartElement(Atom10Constants.GeneratorTag, Atom10Constants.Atom10Namespace)) 298else if (reader.IsStartElement(Atom10Constants.IdTag, Atom10Constants.Atom10Namespace)) 302else if (reader.IsStartElement(Atom10Constants.LinkTag, Atom10Constants.Atom10Namespace)) 306else if (reader.IsStartElement(Atom10Constants.LogoTag, Atom10Constants.Atom10Namespace)) 310else if (reader.IsStartElement(Atom10Constants.RightsTag, Atom10Constants.Atom10Namespace)) 314else if (reader.IsStartElement(Atom10Constants.SubtitleTag, Atom10Constants.Atom10Namespace)) 318else if (reader.IsStartElement(Atom10Constants.TitleTag, Atom10Constants.Atom10Namespace)) 322else if (reader.IsStartElement(Atom10Constants.UpdatedTag, Atom10Constants.Atom10Namespace)) 337if (reader.IsStartElement(Atom10Constants.AuthorTag, Atom10Constants.Atom10Namespace)) 341else if (reader.IsStartElement(Atom10Constants.CategoryTag, Atom10Constants.Atom10Namespace)) 345else if (reader.IsStartElement(Atom10Constants.ContentTag, Atom10Constants.Atom10Namespace)) 349else if (reader.IsStartElement(Atom10Constants.ContributorTag, Atom10Constants.Atom10Namespace)) 353else if (reader.IsStartElement(Atom10Constants.IdTag, Atom10Constants.Atom10Namespace)) 357else if (reader.IsStartElement(Atom10Constants.LinkTag, Atom10Constants.Atom10Namespace)) 361else if (reader.IsStartElement(Atom10Constants.PublishedTag, Atom10Constants.Atom10Namespace)) 367else if (reader.IsStartElement(Atom10Constants.RightsTag, Atom10Constants.Atom10Namespace)) 371else if (reader.IsStartElement(Atom10Constants.SourceFeedTag, Atom10Constants.Atom10Namespace)) 377else if (reader.IsStartElement(Atom10Constants.SummaryTag, Atom10Constants.Atom10Namespace)) 381else if (reader.IsStartElement(Atom10Constants.TitleTag, Atom10Constants.Atom10Namespace)) 385else if (reader.IsStartElement(Atom10Constants.UpdatedTag, Atom10Constants.Atom10Namespace)) 402content.WriteTo(writer, elementName, Atom10Constants.Atom10Namespace); 410writer.WriteElementString(elementName, Atom10Constants.Atom10Namespace, value); 419WritePersonTo(writer, p, Atom10Constants.AuthorTag); 428WritePersonTo(writer, p, Atom10Constants.ContributorTag); 440WriteElement(writer, Atom10Constants.UpdatedTag, AsString(lastUpdatedTime)); 449WritePersonTo(writer, p, Atom10Constants.AuthorTag); 463WritePersonTo(writer, p, Atom10Constants.ContributorTag); 473writer.WriteElementString(Atom10Constants.UpdatedTag, 474Atom10Constants.Atom10Namespace, 480writer.WriteStartElement(Atom10Constants.LinkTag, Atom10Constants.Atom10Namespace); 489writer.WriteAttributeString(Atom10Constants.RelativeTag, link.RelationshipType); 493writer.WriteAttributeString(Atom10Constants.TypeTag, link.MediaType); 497writer.WriteAttributeString(Atom10Constants.TitleTag, link.Title); 501writer.WriteAttributeString(Atom10Constants.LengthTag, Convert.ToString(link.Length, CultureInfo.InvariantCulture)); 505writer.WriteAttributeString(Atom10Constants.HrefTag, FeedUtils.GetUriString(link.Uri)); 545while (reader.IsStartElement(Atom10Constants.EntryTag, Atom10Constants.Atom10Namespace)) 556writer.WriteStartElement(Atom10Constants.EntryTag, Atom10Constants.Atom10Namespace); 578type = Atom10Constants.PlaintextType; 584case Atom10Constants.PlaintextType: 587case Atom10Constants.HtmlType: 590case Atom10Constants.XHtmlType: 602if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 715string type = reader.GetAttribute(Atom10Constants.TypeTag, string.Empty); 725type = Atom10Constants.PlaintextType; 727string src = reader.GetAttribute(Atom10Constants.SourceTag, string.Empty); 729if (string.IsNullOrEmpty(src) && type != Atom10Constants.PlaintextType && type != Atom10Constants.HtmlType && type != Atom10Constants.XHtmlType) 742if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 746else if (reader.LocalName == Atom10Constants.SourceTag && reader.NamespaceURI == string.Empty) 845else if (reader.IsStartElement(Atom10Constants.EntryTag, Atom10Constants.Atom10Namespace) && !isSourceFeed) 1005else if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 1009else if (reader.LocalName == Atom10Constants.RelativeTag && reader.NamespaceURI == string.Empty) 1013else if (reader.LocalName == Atom10Constants.TitleTag && reader.NamespaceURI == string.Empty) 1017else if (reader.LocalName == Atom10Constants.LengthTag && reader.NamespaceURI == string.Empty) 1021else if (reader.LocalName == Atom10Constants.HrefTag && reader.NamespaceURI == string.Empty) 1149if (reader.IsStartElement(Atom10Constants.NameTag, Atom10Constants.Atom10Namespace)) 1153else if (reader.IsStartElement(Atom10Constants.UriTag, Atom10Constants.Atom10Namespace)) 1157else if (reader.IsStartElement(Atom10Constants.EmailTag, Atom10Constants.Atom10Namespace)) 1232WriteContentTo(writer, Atom10Constants.TitleTag, title); 1233WriteContentTo(writer, Atom10Constants.SubtitleTag, feed.Description); 1239WriteElement(writer, Atom10Constants.IdTag, id); 1240WriteContentTo(writer, Atom10Constants.RightsTag, feed.Copyright); 1245WriteElement(writer, Atom10Constants.LogoTag, feed.ImageUrl.ToString()); 1249WriteElement(writer, Atom10Constants.GeneratorTag, feed.Generator); 1274WriteElement(dictWriter, Atom10Constants.IdTag, id); 1277WriteContentTo(dictWriter, Atom10Constants.TitleTag, title); 1278WriteContentTo(dictWriter, Atom10Constants.SummaryTag, item.Summary); 1281dictWriter.WriteElementString(Atom10Constants.PublishedTag, 1282Atom10Constants.Atom10Namespace, 1293WriteContentTo(dictWriter, Atom10Constants.ContentTag, item.Content); 1294WriteContentTo(dictWriter, Atom10Constants.RightsTag, item.Copyright); 1297dictWriter.WriteStartElement(Atom10Constants.SourceFeedTag, Atom10Constants.Atom10Namespace); 1306writer.WriteStartElement(elementName, Atom10Constants.Atom10Namespace); 1308WriteElement(writer, Atom10Constants.NameTag, p.Name); 1311writer.WriteElementString(Atom10Constants.UriTag, Atom10Constants.Atom10Namespace, p.Uri); 1315writer.WriteElementString(Atom10Constants.EmailTag, Atom10Constants.Atom10Namespace, p.Email); 1323[XmlRoot(ElementName = Atom10Constants.FeedTag, Namespace = Atom10Constants.Atom10Namespace)]
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (8)
19[XmlRoot(ElementName = Atom10Constants.EntryTag, Namespace = Atom10Constants.Atom10Namespace)] 99return reader.IsStartElement(Atom10Constants.EntryTag, Atom10Constants.Atom10Namespace); 150writer.WriteStartElement(Atom10Constants.EntryTag, Atom10Constants.Atom10Namespace); 179[XmlRoot(ElementName = Atom10Constants.EntryTag, Namespace = Atom10Constants.Atom10Namespace)]
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
250writer.WriteAttributeString(Atom10Constants.Atom10Prefix, Atom10FeedFormatter.XmlNsNs, Atom10Constants.Atom10Namespace);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (14)
246else if (reader.LocalName == Atom10Constants.SchemeTag && reader.NamespaceURI == string.Empty) 284if (reader.IsStartElement(Atom10Constants.CategoryTag, Atom10Constants.Atom10Namespace)) 411writer.WriteAttributeString(Atom10Constants.SchemeTag, categories.Scheme); 495if (reader.IsStartElement(Atom10Constants.TitleTag, Atom10Constants.Atom10Namespace)) 683if (reader.IsStartElement(Atom10Constants.TitleTag, Atom10Constants.Atom10Namespace)) 733collection.Title.WriteTo(writer, Atom10Constants.TitleTag, Atom10Constants.Atom10Namespace); 750writer.WriteAttributeString(Atom10Constants.Atom10Prefix, Atom10FeedFormatter.XmlNsNs, Atom10Constants.Atom10Namespace); 781workspace.Title.WriteTo(writer, Atom10Constants.TitleTag, Atom10Constants.Atom10Namespace);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (11)
483link.RelationshipType = Atom10Constants.AlternateTag; 1089writer.WriteAttributeString("xmlns", Atom10Constants.Atom10Prefix, null, Atom10Constants.Atom10Namespace); 1104if (this.Feed.Links[i].RelationshipType == Atom10Constants.AlternateTag) 1190this.atomSerializer.WriteElement(writer, Atom10Constants.IdTag, this.Feed.Id); 1196if (this.Feed.Links[i].RelationshipType == Atom10Constants.AlternateTag && isFirstAlternateLink) 1234if (item.Links[i].RelationshipType == Atom10Constants.AlternateTag) 1322if (item.SourceFeed.Links[i].RelationshipType == Atom10Constants.SelfTag) 1357else if (item.Links[i].RelationshipType == Atom10Constants.AlternateTag) 1393this.atomSerializer.WriteContentTo(writer, Atom10Constants.RightsTag, item.Copyright); 1404this.atomSerializer.WriteContentTo(writer, Atom10Constants.ContentTag, item.Content);
System\ServiceModel\Syndication\SyndicationContent.cs (5)
69return new XmlSyndicationContent(Atom10Constants.XmlMediaType, dataContractObject, (DataContractSerializer) null); 74return new XmlSyndicationContent(Atom10Constants.XmlMediaType, dataContractObject, dataContractSerializer); 84return new XmlSyndicationContent(Atom10Constants.XmlMediaType, xmlSerializerObject, serializer); 100writer.WriteAttributeString(Atom10Constants.TypeTag, string.Empty, this.Type); 105if (key.Name == Atom10Constants.TypeTag && key.Namespace == string.Empty)
System\ServiceModel\Syndication\SyndicationLink.cs (2)
125return new SyndicationLink(uri, Atom10Constants.AlternateTag, null, mediaType, 0); 140return new SyndicationLink(uri, Atom10Constants.SelfTag, null, mediaType, 0);
System\ServiceModel\Syndication\TextSyndicationContent.cs (3)
59return Atom10Constants.HtmlType; 61return Atom10Constants.XHtmlType; 63return Atom10Constants.PlaintextType;
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
55writer.WriteAttributeString(Atom10Constants.SourceTag, string.Empty, FeedUtils.GetUriString(this.url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (7)
38if (name == Atom10Constants.TypeTag && ns == string.Empty) 49this.type = string.IsNullOrEmpty(this.type) ? Atom10Constants.XmlMediaType : this.type; 61this.type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type; 67this.type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type; 77this.type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type; 201this.WriteTo(writer, Atom10Constants.ContentTag, Atom10Constants.Atom10Namespace);