104 references to FeedUtils
System.ServiceModel.Syndication (104)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (24)
138
if (
FeedUtils
.IsXmlns(name, ns))
448
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
451
writer.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
472
writer.WriteAttributeString(Atom10Constants.HrefTag,
FeedUtils
.GetUriString(link.Uri));
535
_ => throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.Format(SR.Atom10SpecRequiresTextConstruct, context, type))),
549
if (
FeedUtils
.IsXmlns(name, ns))
568
Debug.Assert(!
FeedUtils
.IsXmlns(attr.Name, attr.Namespace), "XML namespace attributes should not be added to the list.");
643
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
692
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
698
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
784
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
788
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
809
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
812
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
865
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
869
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
888
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
910
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
999
if (
FeedUtils
.IsXmlns(name, ns))
1092
writer.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(feed.BaseUri));
1136
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
1139
dictWriter.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
152
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
156
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (22)
121
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, categories.BaseUri);
161
inlineCategories.BaseUri =
FeedUtils
.CombineXmlBase(inlineCategories.BaseUri, reader.Value);
179
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
235
referencedCategories.BaseUri =
FeedUtils
.CombineXmlBase(referencedCategories.BaseUri, reader.Value);
249
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
319
writer.WriteAttributeString(App10Constants.Href,
FeedUtils
.GetUriString(categories.Link));
327
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUri));
345
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
355
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
433
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
477
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
481
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
497
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
503
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
552
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, collection.BaseUri);
560
writer.WriteAttributeString(App10Constants.Href,
FeedUtils
.GetUriString(collection.Link));
601
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, workspace.BaseUri);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (32)
204
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
206
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
245
if (
FeedUtils
.IsXmlns(name, ns))
292
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
295
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
394
if (
FeedUtils
.IsXmlns(name, ns))
403
else if (!
FeedUtils
.IsXmlns(name, ns))
461
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
465
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
485
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
488
if (
FeedUtils
.IsXmlns(name, ns))
505
else if (!
FeedUtils
.IsXmlns(name, ns))
545
if (
FeedUtils
.IsXmlns(name, ns))
581
throw new NotSupportedException(
FeedUtils
.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version))));
610
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
766
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
770
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
777
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
780
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
783
writer.WriteString(
FeedUtils
.GetUriString(link.Uri));
818
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(Feed.BaseUri));
890
writer.WriteElementString(Rss20Constants.UrlTag,
FeedUtils
.GetUriString(Feed.ImageUrl));
892
string imgAlternateLink = (alternateLink != null) ?
FeedUtils
.GetUriString(alternateLink.Uri) : string.Empty;
968
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
971
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
982
if (guid ==
FeedUtils
.GetUriString(item.Links[i].Uri))
1064
writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace,
FeedUtils
.GetUriString(selfLink.Uri));
1139
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
1142
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
1147
writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace,
FeedUtils
.GetUriString(link.Uri));
System\ServiceModel\Syndication\SyndicationFeed.cs (7)
76
_authors =
FeedUtils
.ClonePersons(source._authors);
77
_categories =
FeedUtils
.CloneCategories(source._categories);
78
_contributors =
FeedUtils
.ClonePersons(source._contributors);
79
Copyright =
FeedUtils
.CloneTextContent(source.Copyright);
80
Description =
FeedUtils
.CloneTextContent(source.Description);
87
_links =
FeedUtils
.CloneLinks(source._links);
88
Title =
FeedUtils
.CloneTextContent(source.Title);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (8)
150
if (
FeedUtils
.IsXmlns(name, ns))
161
if (
FeedUtils
.IsXmlns(name, ns))
172
if (
FeedUtils
.IsXmlns(name, ns))
183
if (
FeedUtils
.IsXmlns(name, ns))
194
if (
FeedUtils
.IsXmlns(name, ns))
342
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingUri), e);
368
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDateTime), e);
371
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDateTime));
System\ServiceModel\Syndication\SyndicationItem.cs (7)
57
_authors =
FeedUtils
.ClonePersons(source._authors);
58
_categories =
FeedUtils
.CloneCategories(source._categories);
60
_contributors =
FeedUtils
.ClonePersons(source._contributors);
61
Copyright =
FeedUtils
.CloneTextContent(source.Copyright);
64
_links =
FeedUtils
.CloneLinks(source._links);
71
Summary =
FeedUtils
.CloneTextContent(source.Summary);
73
Title =
FeedUtils
.CloneTextContent(source.Title);
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
37
writer.WriteAttributeString(Atom10Constants.SourceTag, string.Empty,
FeedUtils
.GetUriString(Url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
37
else if (!
FeedUtils
.IsXmlns(name, ns))