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 5955633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:08:30+00:00 2026-05-22T18:08:30+00:00

in my app i am trying to parse an RSS feed url. Its working

  • 0

in my app i am trying to parse an RSS feed url. Its working fine without any error. But now i am worried about the other rss feed types such as RDF and Autumn.

At first i dint have any idea about those feeds. Now the problem is, in my app when the user parses an RSS feed url it will work fine but if the user is parsing an RDF feed or Autumn feed i am sure that it will not get any content from those feeds, because the opening tags are different for all those feeds.

I am worrying that this will create problem in my app, how to overcome this problem…

I know that i should give the opening tags. I have a logical idea of using switch case for each tag that they related to RSS feed, RDF feed and so, but i dont know to implement it…

Please anyone help me…..

  • 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-05-22T18:08:31+00:00Added an answer on May 22, 2026 at 6:08 pm

    I presume you at some point in your handler do something like

    if (localName.equals("tag")
    {
       // inside an <tag> field
    }
    

    and there you can surely just go

    if ((localName.equals("tag1")) || (localName.equals("tag2") || ...)
    

    for each of the various opening tag names. That said, it seems neater to me, if you can get/know the feed type before parsing it, to just have different custom xml parsers for each (like RSSXMLHandler, RDFXMLHandler, etc) and use them like

      SAXParserFactory spf = SAXParserFactory.newInstance();
      SAXParser sp = spf.newSAXParser();
    
      XMLReader xr = sp.getXMLReader();
    
      if (feedType.equals("RSS"))
      {
        RSSXMLHandler mHandler = new RSSXMLHandler();
      }
      else if (feedType.equals("RDF"))
      {
        RDFXMLHandler mHandler = new RDFXMLHandler();
      }
      else if (andSoOn)
      {
      }
    
      xr.setContentHandler(mHandler);
    

    That way, if one changes — eg, suppose the format of the RDF feed changes — you don’t have to worry about breaking the RSS/Autumn etc feed reading when updating it.

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

Sidebar

Related Questions

Im trying to create a RSS feed reader for a project that I working
In my app I am trying to parse some values from url whenever the
Dear Scholars I am trying to parse a RSS feed with the following item
in my app i am trying to parse an xml file from a url.
I am trying to build an iPhone App, where I read an RSS feed
I have been trying to parse this ( http://app.calvaryccm.com/mobile/android/v1/devos ) URL using a SAX
trying ot parse the push I geting with my app. but i get some
I am trying to parse JSON in an Adobe Flex app, using http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/'>This Tutorial
I'm trying to parse some data returned by a 3rd party app (a TSV
In my app I'm trying to render text along a path; this is fine

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.