104 references to FeedUtils
System.ServiceModel.Syndication (104)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (24)
152if (FeedUtils.IsXmlns(name, ns)) 462Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 465writer.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 486writer.WriteAttributeString(Atom10Constants.HrefTag, FeedUtils.GetUriString(link.Uri)); 561_ => throw new XmlException(FeedUtils.AddLineInfo(reader, SR.Format(SR.Atom10SpecRequiresTextConstruct, context, type))), 575if (FeedUtils.IsXmlns(name, ns)) 594Debug.Assert(!FeedUtils.IsXmlns(attr.Name, attr.Namespace), "XML namespace attributes should not be added to the list."); 673else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 722result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 728if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 814throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 818throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 839result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 842if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 895throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 899throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 918link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 940else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 1029if (FeedUtils.IsXmlns(name, ns)) 1122writer.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(feed.BaseUri)); 1166Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri); 1169dictWriter.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(baseUriToWrite));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
169throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e); 173throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (22)
138Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, categories.BaseUri); 178inlineCategories.BaseUri = FeedUtils.CombineXmlBase(inlineCategories.BaseUri, reader.Value); 196if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 252referencedCategories.BaseUri = FeedUtils.CombineXmlBase(referencedCategories.BaseUri, reader.Value); 266if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 336writer.WriteAttributeString(App10Constants.Href, FeedUtils.GetUriString(categories.Link)); 344writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUri)); 362result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 372if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 450if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 494throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e); 498throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDocument), e); 514result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 520if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 569Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, collection.BaseUri); 577writer.WriteAttributeString(App10Constants.Href, FeedUtils.GetUriString(collection.Link)); 618Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, workspace.BaseUri);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (32)
234link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 236else if (!FeedUtils.IsXmlns(reader.LocalName, reader.NamespaceURI)) 275if (FeedUtils.IsXmlns(name, ns)) 322result.BaseUri = FeedUtils.CombineXmlBase(result.BaseUri, reader.Value); 325if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 424if (FeedUtils.IsXmlns(name, ns)) 433else if (!FeedUtils.IsXmlns(name, ns)) 491throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 495throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingItem), e); 515link.BaseUri = FeedUtils.CombineXmlBase(link.BaseUri, reader.Value); 518if (FeedUtils.IsXmlns(name, ns)) 535else if (!FeedUtils.IsXmlns(name, ns)) 575if (FeedUtils.IsXmlns(name, ns)) 611throw new NotSupportedException(FeedUtils.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version)))); 640if (FeedUtils.IsXmlns(name, ns) || FeedUtils.IsXmlSchemaType(name, ns)) 796throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 800throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingFeed), e); 807Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 810writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 813writer.WriteString(FeedUtils.GetUriString(link.Uri)); 848writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(Feed.BaseUri)); 920writer.WriteElementString(Rss20Constants.UrlTag, FeedUtils.GetUriString(Feed.ImageUrl)); 922string imgAlternateLink = (alternateLink != null) ? FeedUtils.GetUriString(alternateLink.Uri) : string.Empty; 998Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(feedBaseUri, item.BaseUri); 1001writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 1012if (guid == FeedUtils.GetUriString(item.Links[i].Uri)) 1094writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(selfLink.Uri)); 1169Uri baseUriToWrite = FeedUtils.GetBaseUriToWrite(baseUri, link.BaseUri); 1172writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 1177writer.WriteAttributeString(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(link.Uri));
System\ServiceModel\Syndication\SyndicationFeed.cs (7)
77_authors = FeedUtils.ClonePersons(source._authors); 78_categories = FeedUtils.CloneCategories(source._categories); 79_contributors = FeedUtils.ClonePersons(source._contributors); 80Copyright = FeedUtils.CloneTextContent(source.Copyright); 81Description = FeedUtils.CloneTextContent(source.Description); 88_links = FeedUtils.CloneLinks(source._links); 89Title = FeedUtils.CloneTextContent(source.Title);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (8)
188if (FeedUtils.IsXmlns(name, ns)) 202if (FeedUtils.IsXmlns(name, ns)) 216if (FeedUtils.IsXmlns(name, ns)) 230if (FeedUtils.IsXmlns(name, ns)) 244if (FeedUtils.IsXmlns(name, ns)) 440throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingUri), e); 466throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDateTime), e); 469throw new XmlException(FeedUtils.AddLineInfo(reader, SR.ErrorParsingDateTime));
System\ServiceModel\Syndication\SyndicationItem.cs (7)
59_authors = FeedUtils.ClonePersons(source._authors); 60_categories = FeedUtils.CloneCategories(source._categories); 62_contributors = FeedUtils.ClonePersons(source._contributors); 63Copyright = FeedUtils.CloneTextContent(source.Copyright); 66_links = FeedUtils.CloneLinks(source._links); 73Summary = FeedUtils.CloneTextContent(source.Summary); 75Title = FeedUtils.CloneTextContent(source.Title);
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
40writer.WriteAttributeString(Atom10Constants.SourceTag, string.Empty, FeedUtils.GetUriString(Url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
39else if (!FeedUtils.IsXmlns(name, ns))