tags:

views:

3440

answers:

18

How do I display a News RSS feeds from a web site into another web site?

I don't need to program or process anything, just take the information from one place and display it in the other.

Probably I want this to be done on the client side, So I guess it would need to be a javascript solution.

A: 

It depends on if you want to do it server side, client-side (javascript), in some sort of widget, et cetera. Your question really isn't detailed enough to give a good answer.

Clint Ecker
A: 

It depends on what your programming environment is. I know you can some nice controls to handle it all for you in ASP.Net, for example, and I'm sure other environments have their way to do it. An XML Style Sheet would work pretty well, too.

Joel Coehoorn
A: 

Depends what language your website is written in. There are tools for PHP to consume RSS and display them as HTML. There are likely modules for most popular languages.

Or if you want a client-side solution, you could try a JavaScript tool such as http://www.rss-to-javascript.com/

mopoke
A: 

Depends what language you're using. Typically you'd find yourself a prebuild RSS parser to do the hard work for you, but if there's nothing available, it'd be pretty easy to roll your own with an XML parser.

(Now, if there's no XML parser available, you may have a bit of work ahead of you :))

Dan
If there's no XML parser, consult Jeff Atwood on the use of regular expressions for parsing RSS feeds.
Kibbee
+6  A: 

You can use XSLT to translate the RSS to HTML: Translating RSS With XSLT

Eric Lathrop
The linked page, for me, is 404'd.
nsayer
A: 

You can do it server-side, by fetching the feed, parsing it yourself and outputting whichever you'd like. This can be done using XSLT, or if you really want to have some fun, you could read the file in, process it in your dev language of choice (MagpieRSS is good for this in PHP), and treat it the same way you would regular site content.

Alternatively, you can do it client-side with some javascript - you can even get Google gadgets to do all of the work for you!

ConroyP
+1  A: 

Depending on the language you're working in, either with an XLST transformation or by writing your own code looping over the RSS and creating HTML.

Nouveau
+1  A: 

RSSDisplay does it in perl. Not sure if that's the sort of thing you're after. Alternatively you can do it with XSLT if you roll that way

Glenn Slaven
A: 

Do you need to program a solution? Which programming languages do you know? Perl can do this pretty efficiently with XML::RSS. You can also do this with XSLT processing if you want to stay firmly in the XML/HTML camp.

If programming isn't what you're after, you can use an RSS reader, like the one built into Firefox.

Perhaps you can add a bit more context to your question?

jjohn
A: 

Don't most RSS feeds get rendored in most web browsers as is? Example: blog.stackoverflow.com.

Charles Graham
A: 

If you plan on using PHP with your HTML, SimplePie is amazingly easy.

icco
A: 

As others have said, there are a lot of different ways to do this. If you're looking for something server-side and don't want to reinvent the wheel, take a look at this list of aggregators that require web server installation.

Dori
+4  A: 

One other option: Google's Ajax Feeds. Basically all you need to do is include a javascript script on your page and a placeholder div and it should display the feed using AJAX.

Mladen Mihajlovic
A: 

The google Ajax is nice. Thanks.

A: 

i guess you want a javascript solution, maybe you want to parse rss with jquery?

miceuz
A: 

Use a tool like www.rssinclude.com. Embed the feed using either Javascript (easy!) or as static HTML using PHP, ASP or any other server side scripting.

A: 

I use feed2js. It's free and has a wide variety of options.

paulmorriss
A: 

i can recommend MagpieRSS to do it server side, i'm rather new to php and using/installing this was easy. then you can $rss.item.title etc...

alfred