syndication-feed

Rss20FeedFormatter Ignores TextSyndicationContent type for SyndicationItem.Summary

依然范特西╮ 提交于 2020-01-12 05:26:07
问题 While using the Rss20FeedFormatter class in a WCF project, I was trying to wrap the content of my description elements with a <![CDATA[ ]]> section. I found that no matter what I did, the HTML content of the description elements was always encoded and the CDATA section was never added. After peering into the source code of Rss20FeedFormatter, I found that when building the Summary node, it basically creates a new TextSyndicationContent instance which wipes out whatever settings were

How to get all possible image URLs from RSS feed item?

别说谁变了你拦得住时间么 提交于 2020-01-11 10:06:47
问题 I try to use this example to get images urls from http://www.nydailynews.com/cmlink/NYDN.Article.rss but no success Could u help me to find all correct ways to gets all possible image URLs from RSS feed item by SyndicationItem class? There is draft solution here but I guess should be more generic solution. Thank you! List<RssFeedItem> rssItems = new List<RssFeedItem>(); Stream stream = e.Result; XmlReader response = XmlReader.Create(stream); SyndicationFeed feeds = SyndicationFeed.Load

Get media elements from RSS using SyndicationFeed

∥☆過路亽.° 提交于 2020-01-06 08:23:07
问题 I'm attempting to parse an RSS feed using C# and the SyndicationFeed class. I'm iterating over the items to get a list of SyndicationItems and that is exposing most of the feed properties, but what I cannot get out is the media:thumbnail element: <?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"

Reading non-standard elements in a SyndicationItem with SyndicationFeed

a 夏天 提交于 2019-12-17 10:17:01
问题 With .net 3.5, there is a SyndicationFeed that will load in a RSS feed and allow you to run LINQ on it. Here is an example of the RSS that I am loading: <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <title>Title of RSS feed</title> <link>http://www.google.com</link> <description>Details about the feed</description> <pubDate>Mon, 24 Nov 08 21:44:21 -0500</pubDate> <language>en</language> <item> <title>Article 1</title> <description><![CDATA[How to use StackOverflow

How do I read a secure rss feed into a SyndicationFeed without providing credentials?

佐手、 提交于 2019-12-13 11:36:01
问题 For whatever reason, IBM uses https (without requiring credentials) for their RSS feeds. I'm trying to consume https://www.ibm.com/developerworks/mydeveloperworks/blogs/roller-ui/rendering/feed/gradybooch/entries/rss?lang=en with a .NET 4 SyndicationFeed. I can open this feed in a browser and it loads just fine. Here's the code: using (XmlReader xml = XmlReader.Create("https://www.ibm.com/developerworks/mydeveloperworks/blogs/roller-ui/rendering/feed/gradybooch/entries/rss?lang=en")) { var

Java - Rome: I am trying to parse RSS feed but get a error on some channels

喜夏-厌秋 提交于 2019-12-10 22:28:25
问题 I am trying to work with rss and parse it. I found the Rome and I am trying to work with it by code: private SyndFeed parseFeed(String url) throws IllegalArgumentException, FeedException, IOException { return new SyndFeedInput().build(new XmlReader(new URL(url))); } public Boolean processRSSContent(String url) { try { SyndFeed theFeed = this.parseFeed(url); SyndEntry entry = theFeed.getEntries().get(0); ZonedDateTime entryUtcDate = ZonedDateTime.ofInstant(entry.getPublishedDate().toInstant(),

Is it possible to use authentication in RSS feeds using php?

瘦欲@ 提交于 2019-12-09 05:57:42
问题 I'm trying to develop a feed for an intranet document management system, so that staff can be notified of new documents. I have actually completed coding it, but there is no way to authenticate the user. Also I'm not successful in adding the feed to news readers, but works with firefox Live Bookmark. Any Ideas Update: Since I couldn't explain really well, I'll be specific I want it to work inside OutLook RSS Feeds. Thanks 回答1: Well it's not very common, but i read an article about it a while

How to Add CSS Reference to .NET SyndicationFeed?

自作多情 提交于 2019-12-07 10:20:18
问题 I have created a simple SyndicationFeed with many SyndicationItems. Each SyndicationItem has HtmlContent. The HtmlContent is a table. This displays OK, but now I need a minimum of styling/padding on the table. I believe I need to add a stylesheet reference like <?xml-stylesheet type="text/css" href="http://you.com/rss.css" ?> But I do not see how to do this with the .NET 4.5 SyndicationFeed or Atom10FeedFormatter classes. Here is the (pseudo) code that is generated by a WCF service. var feed

How To Add A SyndicationElementExtension To A SyndicationItem

夙愿已清 提交于 2019-12-06 22:12:28
问题 Using the .NET System.ServiceModel.Syndication classes... I would like to add a new SyndicationElementExtension to a SyndicationItem that will export the following XML: <media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123" /> Something along the lines of: syndicationItem.ElementExtensions.Add(new SyndicationElementExtension("thumbnail", "http://video.search.yahoo.com/mrss", ? How do you create a simple SyndicationElementExtension with a few

How to Add CSS Reference to .NET SyndicationFeed?

喜欢而已 提交于 2019-12-05 17:53:22
I have created a simple SyndicationFeed with many SyndicationItems. Each SyndicationItem has HtmlContent. The HtmlContent is a table. This displays OK, but now I need a minimum of styling/padding on the table. I believe I need to add a stylesheet reference like <?xml-stylesheet type="text/css" href="http://you.com/rss.css" ?> But I do not see how to do this with the .NET 4.5 SyndicationFeed or Atom10FeedFormatter classes. Here is the (pseudo) code that is generated by a WCF service. var feed = new feed(......); var xqn = new XmlQualifiedName( "mysys" , "http://www.w3.org/2000/xmlns/" ); feed