syndication

Create ASP.NET Syndication Feeds with SqlConnection and VB.NET

走远了吗. 提交于 2020-01-01 06:56:07
问题 This seems to be a great article by Scott Mitchell for creating syndicated feeds in ASP.NET 3.5 . The problem for me is that it uses C# and Linq, which I'm not as sharp on at the current time. http://dotnetslackers.com/articles/aspnet/How-to-create-a-syndication-feed-for-your-website.aspx Does anyone know where an example might exist for the System.ServiceModel.Syndication namespace that can produce a syndicated feed like this article using VB.NET and a SQLConnection object? I've looked

How do I take an RSS feed from wordpress.com and add the newest post of the feed to another website? [closed]

我们两清 提交于 2019-12-13 09:21:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am building a static site using php files. On the index.php file, I need to dynamically pull the RSS feed of a certain wordpress.com blog. The only information I need to pull is the excerpt content of the newest post (1 post total). When the wordpress.com blog is updated, the content on the index.php file

The type or namespace name 'Syndication' does not exist in the namespace 'System.ServiceModel' After updating to VS2010

若如初见. 提交于 2019-12-11 01:44:15
问题 i get the following error when trying to compile my asp.net site after updating the project from vs2008 to vs2010 The type or namespace name 'Syndication' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?) I have the asp.net site targeting 3.5 framework (as it did in vs2008) I also added a reference to System.ServiceModel.Web I also have these using statements at the top of my class: using System.ServiceModel; using System.ServiceModel.Description;

RSS Item updates

好久不见. 提交于 2019-12-10 14:00:56
问题 I'm working on an RSS feed for a custom tasking system we use, and I'm still wrapping my head around how things should work. What I want to have is a feed for each user that shows tasks assigned to them, and additionally a feed for each task that shows updates for the task. What I want to know right now concerns the user feed. When a case assigned to a user is updated, I currently have code to change the pubDate entry for that item and the lastBuildDate for the channel. I was hoping this

While parsing RSS feed through Rome getting Content is not allowed in prolog

岁酱吖の 提交于 2019-12-08 07:08:59
问题 Using Rome API to parse the RSS feeds I am getting this error : com.sun.syndication.io.ParsingFeedException: Invalid XML at com.sun.syndication.io.WireFeedInput.build(WireFeedInput.java:210) The code is as below: public static void main(String[] args) { URL url; XmlReader reader = null; SyndFeed feed; try { url = new URL("https://www.democracynow.org/podcast.xml"); reader = new XmlReader(url); feed = new SyndFeedInput().build(reader); for (Iterator<SyndEntry> i =feed.getEntries().iterator();

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 A SyndicationElementExtension To A SyndicationItem

房东的猫 提交于 2019-12-05 04:40:22
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 attributes? Just to simplify for the next guy who comes along trying to figure this out, here's a working

How to create a SyndicationFeed with a custom namespace

空扰寡人 提交于 2019-12-05 02:58:01
问题 How can I generate Atom Feed which will contain the namespaces displayed in the image below? All the nodes of the Atom feed have to start with "a:". Here is what I am doing right now, however it doesn't work. SyndicationFeed feed = new SyndicationFeed(); XmlQualifiedName key = new XmlQualifiedName("os", "xmlns"); feed.AttributeExtensions.Add(key, "http://a9.com/-/spec/opensearch/1.1/"); Thanks! 回答1: I believe it should be SyndicationFeed feed = new SyndicationFeed(); XmlQualifiedName key =

Creating an RSS feed in ASP.NET 3.5

本秂侑毒 提交于 2019-12-03 17:28:24
问题 How would you create an RSS feed in ASP.NET 3.5 using C#? What framework pieces would help in making the publishing of an RSS or Atom feed easier for the .NET developer? Are there any extra features in .NET 4 to make this task easier than in 3.5? 回答1: There's a new namespace for this in 3.5 called System.ServiceModel.Syndication. Kevin Miller has a great writeup on this, not a whole lot too it with the new namespace, check out the article, no need to repost here, example code is much easier

How to read a image url from a rss with syndicationFeed?

流过昼夜 提交于 2019-12-03 13:54:44
问题 How to get the image url? supposing that the tag is <media:thumbnail url="http://img.youtube.com/vi/y6_-cLWwEU0/default.jpg" width="120" height="90" /> using syndicationItem in syndicationFeed? i have something like this Stream stream = e.Result; XmlReader response = XmlReader.Create(stream); SyndicationFeed feeds = SyndicationFeed.Load(response); foreach (SyndicationItem ff in feeds.Items) { RssItem rssItem = new RssItem(ff.Title.Text, ff.Summary.Text, ff.PublishDate.ToString(), ff.Links[0]