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.");
642
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
691
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
697
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
783
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
787
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
808
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
811
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
864
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
868
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
887
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
909
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
998
if (
FeedUtils
.IsXmlns(name, ns))
1091
writer.WriteAttributeString("xml", "base", XmlNs,
FeedUtils
.GetUriString(feed.BaseUri));
1135
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
1138
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)
203
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
205
else if (!
FeedUtils
.IsXmlns(reader.LocalName, reader.NamespaceURI))
244
if (
FeedUtils
.IsXmlns(name, ns))
291
result.BaseUri =
FeedUtils
.CombineXmlBase(result.BaseUri, reader.Value);
294
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
393
if (
FeedUtils
.IsXmlns(name, ns))
402
else if (!
FeedUtils
.IsXmlns(name, ns))
460
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
464
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingItem), e);
484
link.BaseUri =
FeedUtils
.CombineXmlBase(link.BaseUri, reader.Value);
487
if (
FeedUtils
.IsXmlns(name, ns))
504
else if (!
FeedUtils
.IsXmlns(name, ns))
544
if (
FeedUtils
.IsXmlns(name, ns))
580
throw new NotSupportedException(
FeedUtils
.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version))));
609
if (
FeedUtils
.IsXmlns(name, ns) ||
FeedUtils
.IsXmlSchemaType(name, ns))
765
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
769
throw new XmlException(
FeedUtils
.AddLineInfo(reader, SR.ErrorParsingFeed), e);
776
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
779
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
782
writer.WriteString(
FeedUtils
.GetUriString(link.Uri));
817
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(Feed.BaseUri));
889
writer.WriteElementString(Rss20Constants.UrlTag,
FeedUtils
.GetUriString(Feed.ImageUrl));
891
string imgAlternateLink = (alternateLink != null) ?
FeedUtils
.GetUriString(alternateLink.Uri) : string.Empty;
967
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(feedBaseUri, item.BaseUri);
970
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
981
if (guid ==
FeedUtils
.GetUriString(item.Links[i].Uri))
1063
writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace,
FeedUtils
.GetUriString(selfLink.Uri));
1138
Uri baseUriToWrite =
FeedUtils
.GetBaseUriToWrite(baseUri, link.BaseUri);
1141
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs,
FeedUtils
.GetUriString(baseUriToWrite));
1146
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))