rss

PHP Read XML Podcast RSS Feed

那年仲夏 提交于 2019-12-03 23:33:41
问题 OK, so, I'm creating a page for a friend's podcast site that lists out all of the episodes to his podcast(s). Essentially, all I'm looking for is how to read the RSS Feed. Parse out the Nodes, and display the information on the screen. (eventually, I'm going to create a player that will play the episodes, but that's much later) This is how I'm reading the RSS Feed (which is to one of my shows - for testing purposes). click to see My Feed <?php //Errors: ini_set('display_errors', 'On'); error

How to display Atom/RSS feeds in browser with custom XSLT?

天涯浪子 提交于 2019-12-03 22:10:40
问题 Back in about 2006, I wrote a nice XSLT that transformed my RSS feeds into custom HTML. That way if a user clicked from a browser it would display as a simple page rather than a bunch of junk XML. If that same URL was used in a feed reader it was handled properly and everything was slick. Now days, most browsers (IE, Firefox, Safari, Opera) seem to grab hold of the styles and won't let go. And Chrome just plain ignores the stylesheet transformation. Given that it has been several years, am I

Xcode Get image url from rss feed

你说的曾经没有我的故事 提交于 2019-12-03 21:07:23
Newbie to Xcode and would be thrilled to get an answer to this question. I am trying to get the image url tag from a rss feed and add it to my custom table view cell. The other text I get fine. This is the rss row: <Item> <title>this is a title</title> <description>this is a description</description> <link>http://www.something.com</link> <pubDate>Fri, 09 Aug 2013</pubDate> <enclosure type="image/jpg" url="http://www.ThisIsTheUrlIWant.com" /> </item> This is part of my code without any image logic: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *

Safely generating XML in Lua

你说的曾经没有我的故事 提交于 2019-12-03 20:42:21
I'm writing a Lua application that generates an Atom feed. Right now, I'm generating XML "by hand" -- writing strings to files. This doesn't seem like the best way, although it may be. I am getting nervous about having the escaping exactly right. Has anyone done anything like this in Lua before? Should I stick with generating "by hand"? Or write a wrapper for an existing C library? (Perl, by comparison, seems to have a plethora of options .) I've generated XML by hand too. I created an API that looks like: function XmlElement(tag, text, attr) ... end function XmlSubelement(root, tag, text,

C# Get xml site over SSL/TLS - https://

时光怂恿深爱的人放手 提交于 2019-12-03 20:31:24
问题 I need to be able to read xml/rss from a https web site in a console program. until now my program supports plain http, and i've been searching around but i cant seem to find an easy way to implement support for https. It would not matter if the site has a valid certificate or not, but i would appriciate to get hints towards how i would check these certificates to. I might not know too much about this so any hints are appriciated! what i currently do for http is: XmlTextReader rssReader;

RSS/Atom parsing library for .Net

馋奶兔 提交于 2019-12-03 20:15:36
I'm trying to find a library that can read a given RSS/Atom feed, and that can guess its format and abstract it as a list of items. The idea is to build a simple RSS reader that could take any feed. I know PHP has a few libraries doing just that, but I can't find any .Net version. I believe the ASP.NET RSS Toolkit does what you want. If you are using 3.5 you can use classes from the System.ServiceModel.Syndication namespace Argotic is a pretty comprehensive content syndication framework. 来源: https://stackoverflow.com/questions/824949/rss-atom-parsing-library-for-net

How to programmatically determine whether an RSS feed is a full feed or a partial feed

微笑、不失礼 提交于 2019-12-03 17:31:54
问题 I would need to programmatically determine whether an RSS feed exposes the full content of its articles or just extracts of them. How would you do it? 回答1: Look for a link at the end that says "More", "Continued", "Full article", "..." or similar. Unless you want to follow every link on the page and look for the text from the feed plus extra perhaps. 回答2: I don't think there is a very clean way of doing this, but here are two "hacky" ones: I'd parse the RSS's text, and look for any links

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 create entries with image element in the RSS Feed using the java ROME API?

橙三吉。 提交于 2019-12-03 17:23:58
I am trying to create the RSS Feeds using java ROME API. My requirement is that every entry should contain an Image as given below: <?xml version="1.0" encoding="UTF-8"?> <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> <channel> <title>Sample RSS Build Results</title> <link>http://time.is</link> <description>sample RSS build</description> <item> <title>Ist Feed</title> <link>http://mysampleurl1.com</link> <description>The build was successful!</description> <pubDate>Mon, 08 Aug 2016 10:28:32 GMT</pubDate> <image>http://myimageurl1.com</image> <dc:date>2016-08-08T10:28:32Z</dc

Good C#.NET Solution to manage frequent database polling

余生长醉 提交于 2019-12-03 17:07:46
问题 I am currently working on a c# .NET desktop application that will be communicating to a database over the internet via WCF and WCF Data Services. There will be many spots in the application that may need to be refreshed upon some interval. The easiest solution would be to just put these areas on a timer and requery the database. However, with thousands of clients connecting to the service layer and hence database, these operations would be very expensive to the server. What I have considered