How to implement RSS feed in an application

Posted on 2010-01-07
Last Modified: 2013-11-18

In my web application i want to implement RSS feed feature. could anybody help me in this regard.
Question by:CIPL-Senthil
    LVL 5

    Expert Comment


    Expert Comment

    Well, here's a partial solution that might give you a lead.  I have RSS implemented in my site, wherein I grab the rss feed and redisplay using xsl stylesheets.  However if the feed URL is unavailable it throws an exception error, which does not look so good.  If anyone has some suggestions to help close the args and maybe even display an error message a la "No Information is available at this time" blah blah would be greatly appreciated.

    C# code:


    1    // Need to add close statement and timeout with error message in case of no response
    2    private void Page_Load(object sender, System.EventArgs e)
    3          {
    4          WebRequest request = WebRequest.Create
    5            //RSS URI Path
    6            ("");
    7          WebResponse response = request.GetResponse();
    8          Stream responseStream = response.GetResponseStream();
    9          XmlTextReader reader = new XmlTextReader(responseStream);
    10         XmlDocument xml_doc = new XmlDocument();
    11         xml_doc.Load(reader);
    12         fetchXML.Document = xml_doc;
    13         }

      Call to xsl stylesheet for display of rss:


    <asp:xml id="fetchXML" runat="server" TransformSource="stylesheet.xsl"></asp:xml>

    Author Comment

    can anybody explain me with an simple example how to implement RSS feed in a web application. The links you are providing is giving only partial data. So could anybody explain me completely with a simple example how to implement it.

    Please dont suggest in any other language other than java.
    LVL 107

    Expert Comment

    by:Ray Paseur
    Couple of things you might want to do.

    1. Tell us what you mean by "implement" - do you want to consume RSS from an outside source or publish RSS from your own data?

    2. Click "REQUEST ATTENTION" and ask a moderator to add this to the Java Zone.

    Best of luck with it (and if you decide you want to do it in PHP, please post a new question and I will be glad to help). ~Ray

    Author Comment

    I want to publish RSS from my own data.
    LVL 24

    Accepted Solution


    Check out these links

    Other RSS tutorial

    Hope this helps.

        Tomas Helgi

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now