atom-feed

Link to RSS/Atom feed, relative, doesn't work in Firefox

本秂侑毒 提交于 2019-12-10 04:04:57
问题 I have a weird problem. I generate a HTML page, hosted let's say at http://www.x.com/stuff which contains <head> <link type="application/atom+xml" rel="alternate" href="/stuff/feed"/> .. </head> The result is: In IE7 all works well - you can click on the feed icon in the browser and the feed is displayed In Firefox, view source, click on the linked /stuff/feed and you see the source of the feed, so that works as expected In Firefox, view the page (not source), then click on the feed icon in

How to get more Feed items?

♀尐吖头ヾ 提交于 2019-12-09 18:03:13
问题 How would I get the next page or more results for a feed? For example, when I go to Security Now feed page, there is no "next" link of any kind and the url parameter of "page=100" does nothing: http://leoville.tv/podcasts/sn.xml I get only 1 page of results of about 20 episodes. However my Google Reader can successfully retrieve episodes that are earlier than that. 回答1: Indeed it is true that Google Reader caches the items and it is NOT possible to paginate on RSS2, RSS or Atom feeds (unless

Nested resource with Atom Feed Helper

◇◆丶佛笑我妖孽 提交于 2019-12-08 04:05:08
问题 I'm trying to use the Rails Atom Feed Helper to generate a feed for a nested resource. My view template (index.atom.builder) is: atom_feed(:schema_date => @favourites.first.created_at) do |feed| feed.title("Favourites for #{@user.login}") feed.updated(@favourites.first.created_at) @favourites.each do |favourite| feed.entry(favourite, :url => favourite.asset.external_ref) do |entry| entry.title(favourite.asset.external_ref) entry.content(image_tag(favourite.asset.location), :type => 'html')

Adding a namespace to a Zend_Feed_Writer_Feed

◇◆丶佛笑我妖孽 提交于 2019-12-08 03:34:46
问题 I'm working on implementing a feed generator for use with Google Product Search for our sites. As Zend incorporates a feed writer class, I decided to go with Atom for the feed format. I've done some work building up a bare-bones Atom feed into which the real product data will be injected, but I've hit a fairly serious snag. Google want a feed file to be a customised version of either RSS or Atom, with an additional namespace attached for the tags Google Product Search uses. For example, <feed

Parse iTunes RSS Atom feed with PHP?

和自甴很熟 提交于 2019-12-08 00:14:02
问题 Trying to parse an iTunes Atom feed with a PHP script. If you visit the iTunes RSS Generator, you can generate an Atom feed like this: http://itunes.apple.com/us/rss/topsongs/limit=10/genre=16/explicit=true/xml which gives an iTunes RSS feed result like this: <?xml version="1.0" encoding="utf-8"?> <feed xmlns:im="http://itunes.apple.com/rss" xmlns="http://www.w3.org/2005/Atom" xml:lang="en"> <id>http://itunes.apple.com/us/rss/topsongs/limit=10/genre=16/explicit=true/xml</id><title>iTunes

How to make the Mercurial (hgwebdir) rss/atom feed display the branch name

点点圈 提交于 2019-12-07 13:55:44
问题 I would like to configure our Mercurial server installation so the rss/atom feed will publish the branch name of the changeset, in addition to the standard fields (title, guid, description, author, pubDate). 回答1: Installation locations differ, but on ubuntu you'll find the relevant file as /usr/share/mercurial/templates/atom/changelogentry.tmpl . It starts out looking like: <entry> <title>{desc|strip|firstline|strip|escape|nonempty}</title> <id>{urlbase}{url}#changeset-{node}</id> <link href=

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

Displaying images in atom feed

一个人想着一个人 提交于 2019-12-07 02:30:28
问题 I have problems with displaying images in atom file. It doesn't include images in feed in google reader, opera or firefox. As a starting point I did everything like in Listing 6. at [An overview of the Atom 1.0 Syndication Format] But it doesn't work. Update It is not problem with hotlink protected images. Described here: How to display item photo in atom feed? Later I changed feed according to description posted here. I added: <media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url=

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

ASP.net c#. How do I parse an atom feed from a blog

元气小坏坏 提交于 2019-12-06 07:15:22
问题 The feed is at: http://latestpackagingnews.blogspot.com/feeds/posts/default The tags I want are: <entry> <published></published> <title></title> <content></content> </entry> I don't care about anything else, all I want to do is loop these! Please don't post tutorial links I've tried a bunch and just can't get any to work. Treat me like an idiot please. 回答1: You can take a look at the System.ServiceModel.Syndication.Atom10FeedFormatter class. (System.ServiceModel.dll) static void Main(string[]