EzDevInfo.com

rss interview questions

Top rss frequently asked interview questions

RSS Feeds in ASP.NET MVC

How would you reccommend handling RSS Feeds in ASP.NET MVC? Using a third party library? Using the RSS stuff in the BCL? Just making an RSS view that renders the XML? Or something completely different?


Source: (StackOverflow)

How to find RSS feed of a particular website?

How to find RSS feed of a particular website? Whether there is any particular way to find it?


Source: (StackOverflow)

Advertisements

Best Way to read rss feed in .net Using C#

what is the best way to read rss feeds.

I am using XmlTextReader to achieve this. Is there any other best way to do it.

XmlTextReader reader = new XmlTextReader(strURL);

DataSet ds = new DataSet();
ds.ReadXml(reader);

after reading the rss feed using XmlTextReader is there any way i can that data to list item instead of dataset?

enter image description here


Source: (StackOverflow)

Google Chrome rendering XML as text for RSS feed

I have this script to generate an XML file for an RSS feed. Works great in every browser except Chrome. Chrome just renders the XML as text. Something to do with header("Content-Type: application/rss+xml; charset=ISO-8859-1"); possibly?

This is the code I'm using:

<?php

$linkUp = "http://localhost/sites/myBlog/";

header("Content-Type: application/rss+xml; charset=ISO-8859-1");

$rssfeed  = '<?xml version="1.0" encoding="ISO-8859-1"?>';
$rssfeed .= '<rss version="2.0">';
$rssfeed .= '<channel>';
$rssfeed .= '<title>Mytitle</title>';
$rssfeed .= '<link>' . $linkUp . '</link>';
$rssfeed .= '<description>Mydescription</description>';
$rssfeed .= '<language>en-us</language>';
$rssfeed .= '<copyright>&copy; ' . strftime('%Y') .  ' . " " . ' . $linkUp . '</copyright>';


$query = "SELECT * FROM rss";
$result = $db->query($query);

while($row = $db->fetch_array($result)) {

    $rssfeed .= '<item>';
    $rssfeed .= '<title>' . $row['rss_title'] . '</title>';
    $rssfeed .= '<description>' . $row['rss_description'] . '</description>';
    $rssfeed .= '<link>' . $row['rss_link'] . '</link>';
    $rssfeed .= '<pubDate>' . date("D, d M Y H:i:s O", strtotime($date)) . '</pubDate>';
    $rssfeed .= '</item>';
}

$rssfeed .= '</channel>';
$rssfeed .= '</rss>';

echo $rssfeed;

?>

Source: (StackOverflow)

The Best News Feeds for Web Developers, RSS [closed]

To all of you great web applications developers. Please, share where do you grab the latest news on this subject: cool blogs, articles, podcasts etc. related to web-based applications development. Help to rate those resouces from the most interesting to least.

Note: It's OK if you list sources which someone else already mentioned, unless your list is exactly the same. Comments are welcomed.

This list could look similar to this one:


Source: (StackOverflow)

java library for reading RSS and ATOM feeds [duplicate]

This question already has an answer here:

I am looking for libraries which can read RSS / ATOM feeds in my J2EE application (based on JBoss Seam).

Is Rome the only application there for reading feeds?

I am assuming the Seam RSS integration is only for generating RSS feeds and not for reading feeds.


Source: (StackOverflow)

Reading non-standard elements in a SyndicationItem with SyndicationFeed

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.com]]></description> 
    	<link>http://youtube.com/?v=y6_-cLWwEU0</link> 
    	<media:player url="http://youtube.com/?v=y6_-cLWwEU0" /> 
    	<media:thumbnail url="http://img.youtube.com/vi/y6_-cLWwEU0/default.jpg" width="120" height="90" /> 
    	<media:title>Jared on StackOverflow</media:title> 
    	<media:category label="Tags">tag1, tag2</media:category> 
    	<media:credit>Jared</media:credit> 
    	<enclosure url="http://youtube.com/v/y6_-cLWwEU0.swf" length="233" type="application/x-shockwave-flash"/> 
    </item> 
</channel>

When I loop through the items, I can get back the title and the link through the public properties of SyndicationItem.

I can't seem to figure out how to get the attributes of the enclosure tag, or the values of the media tags. I tried using

SyndicationItem.ElementExtensions.ReadElementExtensions<string>("player", "http://search.yahoo.com/mrss/")

Any help with either of these?


Source: (StackOverflow)

Setting up an Github Commit RSS feed

I am trying to have my github commits as an RSS feed but so far I have not managed to figure it out. I know that a private feed is available with the following syntax:

https://github.com/username.atom?token=token

But this the users activity feed. I would like a commit feed of one of my projects. Thanks in advance!

Perfect, thank you!! this was the final syntax:

https://github.com/username/repository_name/commits/branch_name.atom?login=login&token=token. 

Still cant view commits on all branches though.


Source: (StackOverflow)

How do I make an RSS/Atom feed in Rails 3?

I'm pretty new to Rails 3, and I'm trying to make an RSS/Atom feed. I know about auto_discovery_link_tag, but what is the associated controller/action supposed to look like?

Thanks!


Source: (StackOverflow)

Generating RSS feed in Rails 3

I'm looking for a best practice/standard pattern for generating feeds in Rails 3. Is http://railscasts.com/episodes/87-generating-rss-feeds still valid?


Source: (StackOverflow)

How can I get started making a C# RSS Reader?

I have been wanting to make a RSS reader for a while now (just for fun), but I don't have the slightest idea of where to start. I don't understand anything about RSS. Are there any good tutorials on RSS and how to implement it in an application (not a tutorial on how to make a RSS reader, that would be too easy).


Source: (StackOverflow)

How to parse an RSS feed using JavaScript?

I need to parse an RSS feed (XML version 2.0) and display the parsed details in an HTML page.


Source: (StackOverflow)

How Do I Fetch All Old Items on an RSS Feed?

I've been experimenting with writing my own RSS reader. I can handle the "parse XML" bit. The thing I'm getting stuck on is "How do I fetch older posts?"

Most RSS feeds only list the 10-25 most recent items in their XML file. How do I get ALL the items in a feed, and not just the most recent ones?

The only solution I could find was using the "unofficial" Google Reader API, which would be something like

http://www.google.com/reader/atom/feed/http://fskrealityguide.blogspot.com/feeds/posts/default?n=1000

I don't want to make my application dependent on Google Reader.

Is there any better way? I noticed that on Blogger, I can do "?start-index=1&max-results=1000", and on WordPress I can do "?paged=5". Is there any general way to fetch an RSS feed so that it gives me everything, and not just the most recent items?


Source: (StackOverflow)

Is there a decent alternative to Yahoo Pipes?

Pipes is being very buggy lately and has stopped saving new pipes these days. Google Mashup Editor and Microsoft Popfly are both discontinued. Are there are any currently running web apps(or atleast libraries that run on appengine) that do something similar ?


Source: (StackOverflow)

Getting raw XML data from a Feedburner RSS feed

For an Android app I am currently working on, I would like to be able to parse raw XML data from an RSS feed and display it. The RSS feed in question uses Feedburner for publishing, and my Google-fu has so far given me nothing on how to get the raw XML. Any tips?


Source: (StackOverflow)