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."); 646else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 695result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 701if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 787throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 791throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 812result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 815if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 868throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 872throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 891link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 913else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 1002if (FeedUtils.IsXmlns(name, ns)) 1095writer.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(feed.BaseUri)); 1139Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri); 1142dictWriter.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)
207link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 209else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 248if (FeedUtils.IsXmlns(name, ns)) 295result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 298if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 397if (FeedUtils.IsXmlns(name, ns)) 406else if (!FeedUtils.IsXmlns(name, ns)) 464throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 468throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 488link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 491if (FeedUtils.IsXmlns(name, ns)) 508else if (!FeedUtils.IsXmlns(name, ns)) 548if (FeedUtils.IsXmlns(name, ns)) 584throw new NotSupportedException(FeedUtils.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version)))); 613if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 769throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 773throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 780Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 783writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 786writer.WriteString(FeedUtils.GetUriString(link.Uri)); 821writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(Feed.BaseUri)); 893writer.WriteElementString(Rss20Constants.UrlTag, FeedUtils.GetUriString(Feed.ImageUrl)); 895string imgAlternateLink = (alternateLink != null) ? FeedUtils.GetUriString(alternateLink.Uri) : string.Empty; 971Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri); 974writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 985if (guid == FeedUtils.GetUriString(item.Links[i].Uri)) 1067writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(selfLink.Uri)); 1142Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 1145writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 1150writer.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))