104 references to FeedUtils
System.ServiceModel.Syndication (104)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (24)
137
if (
FeedUtils
.IsXmlns(name, ns))
447
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
450
writer.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
471
writer.WriteAttributeString(Atom10Constants.HrefTag,
FeedUtils
.GetUriString(link.Uri));
534
_ => throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.Format(SR.Atom10SpecRequiresTextConstruct, context, type))),
548
if (
FeedUtils
.IsXmlns(name, ns))
567
Debug.Assert(!
FeedUtils
.IsXmlns(attr.Name, attr.Namespace), "XML namespace attributes should not be added to the list.");
646
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
695
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
701
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
787
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
791
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
812
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
815
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
868
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
872
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
891
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
913
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
1002
if (
FeedUtils
.IsXmlns(name, ns))
1095
writer.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(feed.BaseUri));
1139
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
1142
dictWriter.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
148
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
152
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (22)
120
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, categories.BaseUri);
160
inlineCategories.BaseUri =
FeedUtils
.CombineXmlBase(inlineCategories.BaseUri, reader.Value);
178
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
234
referencedCategories.BaseUri =
FeedUtils
.CombineXmlBase(referencedCategories.BaseUri, reader.Value);
248
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
318
writer.WriteAttributeString(App10Constants.Href,
FeedUtils
.GetUriString(categories.Link));
326
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUri));
344
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
354
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
432
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
476
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
480
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDocument), e);
496
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
502
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
551
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, collection.BaseUri);
559
writer.WriteAttributeString(App10Constants.Href,
FeedUtils
.GetUriString(collection.Link));
600
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, workspace.BaseUri);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (32)
207
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
209
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
248
if (
FeedUtils
.IsXmlns(name, ns))
295
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
298
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
397
if (
FeedUtils
.IsXmlns(name, ns))
406
else if (!
FeedUtils
.IsXmlns(name, ns))
464
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
468
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
488
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
491
if (
FeedUtils
.IsXmlns(name, ns))
508
else if (!
FeedUtils
.IsXmlns(name, ns))
548
if (
FeedUtils
.IsXmlns(name, ns))
584
throw new NotSupportedException(
FeedUtils
.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version))));
613
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
769
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
773
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
780
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
783
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
786
writer.WriteString(
FeedUtils
.GetUriString(link.Uri));
821
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(Feed.BaseUri));
893
writer.WriteElementString(Rss20Constants.UrlTag,
FeedUtils
.GetUriString(Feed.ImageUrl));
895
string imgAlternateLink = (alternateLink != null) ?
FeedUtils
.GetUriString(alternateLink.Uri) : string.Empty;
971
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
974
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
985
if (guid ==
FeedUtils
.GetUriString(item.Links[i].Uri))
1067
writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace,
FeedUtils
.GetUriString(selfLink.Uri));
1142
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
1145
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
1150
writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace,
FeedUtils
.GetUriString(link.Uri));
System\ServiceModel\Syndication\SyndicationFeed.cs (7)
74
_authors =
FeedUtils
.ClonePersons(source._authors);
75
_categories =
FeedUtils
.CloneCategories(source._categories);
76
_contributors =
FeedUtils
.ClonePersons(source._contributors);
77
Copyright =
FeedUtils
.CloneTextContent(source.Copyright);
78
Description =
FeedUtils
.CloneTextContent(source.Description);
85
_links =
FeedUtils
.CloneLinks(source._links);
86
Title =
FeedUtils
.CloneTextContent(source.Title);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (8)
146
if (
FeedUtils
.IsXmlns(name, ns))
157
if (
FeedUtils
.IsXmlns(name, ns))
168
if (
FeedUtils
.IsXmlns(name, ns))
179
if (
FeedUtils
.IsXmlns(name, ns))
190
if (
FeedUtils
.IsXmlns(name, ns))
338
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingUri), e);
364
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDateTime), e);
367
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingDateTime));
System\ServiceModel\Syndication\SyndicationItem.cs (7)
56
_authors =
FeedUtils
.ClonePersons(source._authors);
57
_categories =
FeedUtils
.CloneCategories(source._categories);
59
_contributors =
FeedUtils
.ClonePersons(source._contributors);
60
Copyright =
FeedUtils
.CloneTextContent(source.Copyright);
63
_links =
FeedUtils
.CloneLinks(source._links);
70
Summary =
FeedUtils
.CloneTextContent(source.Summary);
72
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)
36
else if (!
FeedUtils
.IsXmlns(name, ns))