Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8363239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:07:44+00:00 2026-06-09T12:07:44+00:00

i am creating an android app which fetches information from rss feeds…till now i

  • 0

i am creating an android app which fetches information from rss feeds…till now i can successfully parsing a single rss feed…and display whatever i need.

I want to parse multiple RSS feeds and filter it based on the tags given on those sites…most of the rss will be feedburner rss.

Is there a way to combine many rss feeds filter it based on tags,keywords etc….. and create a single rss feed

public class BaseFeedParser {
    static String feedUrlString = "http://feeds.dzone.com/dzone/frontpage";

        // names of the XML tags
        static final String RSS = "rss";
        static final String CHANNEL = "channel";
        static final String ITEM = "item";

        static final String PUB_DATE = "pubDate";
        static final String DESCRIPTION = "description";
        static final String LINK = "link";
        static final String TITLE = "title";

        private final URL feedUrl;

        protected BaseFeedParser(){
            try {
                this.feedUrl = new URL(feedUrlString);
            } catch (MalformedURLException e) {
                throw new RuntimeException(e);
            }
        }

        protected InputStream getInputStream() {
            try {
                return feedUrl.openConnection().getInputStream();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }

        public List<Message> parse() {
            final Message currentMessage = new Message();
            RootElement root = new RootElement(RSS);
            final List<Message> messages = new ArrayList<Message>();
            Element itemlist = root.getChild(CHANNEL);
            Element item = itemlist.getChild(ITEM);
            item.setEndElementListener(new EndElementListener(){
                public void end() {
                    messages.add(currentMessage.copy());
                }
            });
            item.getChild(TITLE).setEndTextElementListener(new EndTextElementListener(){
                public void end(String body) {
                    currentMessage.setTitle(body);
                }
            });
            item.getChild(LINK).setEndTextElementListener(new EndTextElementListener(){
                public void end(String body) {
                    currentMessage.setLink(body);
                }
            });
            item.getChild(DESCRIPTION).setEndTextElementListener(new EndTextElementListener(){
                public void end(String body) {
                    currentMessage.setDescription(body);
                }
            });
            item.getChild(PUB_DATE).setEndTextElementListener(new EndTextElementListener(){
                public void end(String body) {
                    currentMessage.setDate(body);
                }
            });
            try {
                Xml.parse(this.getInputStream(), Xml.Encoding.UTF_8, root.getContentHandler());
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
            return messages;
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:07:45+00:00Added an answer on June 9, 2026 at 12:07 pm

    You can do this non-programmatically using Yahoo Pipes – it allows you to “pipe”, filter and aggregate RSS data into a single feed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an android app which pulls in RSS Feeds from here http://spaceflight1.nasa.gov/realdata/sightings/cities/rss/index.cgi?country=United_Kingdom&region=England&city=Manchester
I'm creating an Android app which must do some web surfing in the background
I am creating an android app that is basically a listing of information on
My Android app has a main WebView (HTML loaded from a local resource) which
I'm creating a mobile website that will include a page from which people can
I am creating a android app using LunarLander as a example. Now I need
I am new in android development.I am creating an android app in which the
I'm creating an android app which will call a method which parses the selected
I am creating just a simple android app which will respond to received. I
I am developing an android app in which I have 3 spinners populated from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.