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

  • Home
  • SEARCH
  • 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 857259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:22:18+00:00 2026-05-15T08:22:18+00:00

I am parsing some XML from an RSS feed (using NSXMLParser) for a blog

  • 0

I am parsing some XML from an RSS feed (using NSXMLParser) for a blog and would like to display the data for each post in a table cell. The XML looks like this:

<item>
    <title>Blog post 1</title>
    .
    .
</item>
<item>
    <title>Blog post 22</title>
    .
    .
</item>

How would I store this data so that it is available to my tableView:cellForRowAtIndexPath method?

I am thinking of creating a dictionary for each post item and appending these dictionaries to an NSMutableArray. This way I would be able to do something like,

cell.textLabel.text = [[mutableArray objectAtIndex: row] objectForKey: @"title"];

What do you reckon? I’m curious to know how you would approach this problem…

Thanks

  • 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-15T08:22:19+00:00Added an answer on May 15, 2026 at 8:22 am

    This is the most common way of parsing and storing xml in objective-c utilizing nsxmlparser. Here’s a snippet of my own code where I add the _locations dictionary to an array after reading the end element “locations” from the xml:

    if ([elementName isEqualToString:@"location"]) {
                if ([[_location objectForKey:@"status"] isEqualToString: @"A"]) {
                    [user.availableParking addObject:_location];
    
                    [_location release];
                    return;
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file from which I am parsing some content to display
I would like some help parsing a dynamic (folder.subfolders) xml with xslt, I tried
Having a hard time parsing XML created from a web-form using POST. Here's the
I am using Xerces 2.9.1 to perform some XML parsing. The XML contains namespace
I am having some problems parsing this piece of XML using SimpleXML. There is
I'm having some problems with parsing the xml response from my ajax script. The
I am currently parsing some xml that looks like this <Rows> <Row MANUFACTURERID=76 MANUFACTURERNAME=Fondont
I am parsing some vertice information from an XML file which reads as follows
I have an application that extracts data from some xml that is stored in
I am facing a peculiar problem in parsing some xml data within my iPhone

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.