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