104 references to FeedUtils
System.ServiceModel.Syndication (104)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (24)
152
if (
FeedUtils
.IsXmlns(name, ns))
462
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
465
writer.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
486
writer.WriteAttributeString(Atom10Constants.HrefTag,
FeedUtils
.GetUriString(link.Uri));
561
_ => throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.Format(SR.Atom10SpecRequiresTextConstruct, context, type))),
575
if (
FeedUtils
.IsXmlns(name, ns))
594
Debug.Assert(!
FeedUtils
.IsXmlns(attr.Name, attr.Namespace), "XML namespace attributes should not be added to the list.");
673
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
722
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
728
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
814
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
818
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
839
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
842
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
895
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
899
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
918
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
940
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
1029
if (
FeedUtils
.IsXmlns(name, ns))
1122
writer.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(feed.BaseUri));
1166
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
1169
dictWriter.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
169
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
173
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (22)
138
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, categories.BaseUri);
178
inlineCategories.BaseUri =
FeedUtils
.CombineXmlBase(inlineCategories.BaseUri, reader.Value);
196
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
252
referencedCategories.BaseUri =
FeedUtils
.CombineXmlBase(referencedCategories.BaseUri, reader.Value);
266
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
336
writer.WriteAttributeString(App10Constants.Href,
FeedUtils
.GetUriString(categories.Link));
344
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUri));
362
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
372
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
450
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
494
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
498
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
514
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
520
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
569
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, collection.BaseUri);
577
writer.WriteAttributeString(App10Constants.Href,
FeedUtils
.GetUriString(collection.Link));
618
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, workspace.BaseUri);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (32)
234
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
236
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
275
if (
FeedUtils
.IsXmlns(name, ns))
322
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
325
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
424
if (
FeedUtils
.IsXmlns(name, ns))
433
else if (!
FeedUtils
.IsXmlns(name, ns))
491
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
495
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
515
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
518
if (
FeedUtils
.IsXmlns(name, ns))
535
else if (!
FeedUtils
.IsXmlns(name, ns))
575
if (
FeedUtils
.IsXmlns(name, ns))
611
throw new NotSupportedException(
FeedUtils
.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version))));
640
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
796
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
800
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
807
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
810
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
813
writer.WriteString(
FeedUtils
.GetUriString(link.Uri));
848
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(Feed.BaseUri));
920
writer.WriteElementString(Rss20Constants.UrlTag,
FeedUtils
.GetUriString(Feed.ImageUrl));
922
string imgAlternateLink = (alternateLink != null) ?
FeedUtils
.GetUriString(alternateLink.Uri) : string.Empty;
998
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
1001
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
1012
if (guid ==
FeedUtils
.GetUriString(item.Links[i].Uri))
1094
writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace,
FeedUtils
.GetUriString(selfLink.Uri));
1169
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
1172
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
1177
writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace,
FeedUtils
.GetUriString(link.Uri));
System\ServiceModel\Syndication\SyndicationFeed.cs (7)
77
_authors =
FeedUtils
.ClonePersons(source._authors);
78
_categories =
FeedUtils
.CloneCategories(source._categories);
79
_contributors =
FeedUtils
.ClonePersons(source._contributors);
80
Copyright =
FeedUtils
.CloneTextContent(source.Copyright);
81
Description =
FeedUtils
.CloneTextContent(source.Description);
88
_links =
FeedUtils
.CloneLinks(source._links);
89
Title =
FeedUtils
.CloneTextContent(source.Title);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (8)
188
if (
FeedUtils
.IsXmlns(name, ns))
202
if (
FeedUtils
.IsXmlns(name, ns))
216
if (
FeedUtils
.IsXmlns(name, ns))
230
if (
FeedUtils
.IsXmlns(name, ns))
244
if (
FeedUtils
.IsXmlns(name, ns))
440
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingUri), e);
466
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDateTime), e);
469
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDateTime));
System\ServiceModel\Syndication\SyndicationItem.cs (7)
59
_authors =
FeedUtils
.ClonePersons(source._authors);
60
_categories =
FeedUtils
.CloneCategories(source._categories);
62
_contributors =
FeedUtils
.ClonePersons(source._contributors);
63
Copyright =
FeedUtils
.CloneTextContent(source.Copyright);
66
_links =
FeedUtils
.CloneLinks(source._links);
73
Summary =
FeedUtils
.CloneTextContent(source.Summary);
75
Title =
FeedUtils
.CloneTextContent(source.Title);
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
40
writer.WriteAttributeString(Atom10Constants.SourceTag, string.Empty,
FeedUtils
.GetUriString(Url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
39
else if (!
FeedUtils
.IsXmlns(name, ns))