104 references to FeedUtils
System.ServiceModel.Syndication (104)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (24)
137if (FeedUtils.IsXmlns(name, ns)) 447Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 450writer.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 471writer.WriteAttributeString(Atom10Constants.HrefTag, FeedUtils.GetUriString(link.Uri)); 534_ => throw new XmlException(FeedUtils.AddLineInfo(reader, SR.Format(SR.Atom10SpecRequiresTextConstruct, context, type))), 548if (FeedUtils.IsXmlns(name, ns)) 567Debug.Assert(!FeedUtils.IsXmlns(attr.Name, attr.Namespace), "XML namespace attributes should not be added to the list."); 642else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 691result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 697if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 783throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 787throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 808result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 811if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 864throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 868throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 887link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 909else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 998if (FeedUtils.IsXmlns(name, ns)) 1091writer.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(feed.BaseUri)); 1135Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri); 1138dictWriter.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(baseUriToWrite));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
148throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e); 152throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (22)
120Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, categories.BaseUri); 160inlineCategories.BaseUri = FeedUtils.CombineXmlBase(inlineCategories.BaseUri, reader.Value); 178if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 234referencedCategories.BaseUri = FeedUtils.CombineXmlBase(referencedCategories.BaseUri, reader.Value); 248if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 318writer.WriteAttributeString(App10Constants.Href, FeedUtils.GetUriString(categories.Link)); 326writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUri)); 344result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 354if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 432if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 476throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e); 480throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e); 496result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 502if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 551Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, collection.BaseUri); 559writer.WriteAttributeString(App10Constants.Href, FeedUtils.GetUriString(collection.Link)); 600Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, workspace.BaseUri);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (32)
203link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 205else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 244if (FeedUtils.IsXmlns(name, ns)) 291result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 294if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 393if (FeedUtils.IsXmlns(name, ns)) 402else if (!FeedUtils.IsXmlns(name, ns)) 460throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 464throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 484link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 487if (FeedUtils.IsXmlns(name, ns)) 504else if (!FeedUtils.IsXmlns(name, ns)) 544if (FeedUtils.IsXmlns(name, ns)) 580throw new NotSupportedException(FeedUtils.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version)))); 609if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 765throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 769throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 776Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 779writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 782writer.WriteString(FeedUtils.GetUriString(link.Uri)); 817writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(Feed.BaseUri)); 889writer.WriteElementString(Rss20Constants.UrlTag, FeedUtils.GetUriString(Feed.ImageUrl)); 891string imgAlternateLink = (alternateLink != null) ? FeedUtils.GetUriString(alternateLink.Uri) : string.Empty; 967Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri); 970writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 981if (guid == FeedUtils.GetUriString(item.Links[i].Uri)) 1063writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(selfLink.Uri)); 1138Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 1141writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 1146writer.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); 77Copyright = FeedUtils.CloneTextContent(source.Copyright); 78Description = FeedUtils.CloneTextContent(source.Description); 85_links = FeedUtils.CloneLinks(source._links); 86Title = FeedUtils.CloneTextContent(source.Title);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (8)
146if (FeedUtils.IsXmlns(name, ns)) 157if (FeedUtils.IsXmlns(name, ns)) 168if (FeedUtils.IsXmlns(name, ns)) 179if (FeedUtils.IsXmlns(name, ns)) 190if (FeedUtils.IsXmlns(name, ns)) 338throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingUri), e); 364throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDateTime), e); 367throw 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); 60Copyright = FeedUtils.CloneTextContent(source.Copyright); 63_links = FeedUtils.CloneLinks(source._links); 70Summary = FeedUtils.CloneTextContent(source.Summary); 72Title = 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)
36else if (!FeedUtils.IsXmlns(name, ns))