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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:49:52+00:00 2026-05-19T00:49:52+00:00

Here’s what I’m trying to do. I’m having the user input a city, which

  • 0

Here’s what I’m trying to do. I’m having the user input a city, which I’m then plugging into Yahoo’s Placefinder. Here’s an XML file with “Springfield” entered as a test city.

http://where.yahooapis.com/geocode?city=springfield

As you can see, Yahoo nicely provides a number of how many cities it found. So, next I wanted to take each city found, take line2, line4, and woeid and store them in an array. So, the array would look like this (with two cities for example)…

      -> line1
City1 -> line2
      -> woeid


      -> line1
City2 -> line2
      -> woeid

Then, I wanted to take this array and display it in a UITableView, with the WOEID hidden. When one of the cities is selected, I need to take the selected city’s WOEID and use it.

I was thinking of using an instance of NSXMLParser to do this.

EDIT: Perhaps this question is too broad. Maybe if I could just get some help with parsing the XML and adding to an array. 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-19T00:49:52+00:00Added an answer on May 19, 2026 at 12:49 am

    I’d recommend to use a DOM parser instead NSXMLParser (SAX based parser), because that makes it much easier to construct the array.

    You could use libxml2 (included in iPhone SDK), TouchXML, TinyXML or TBXML.

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

Sidebar

Related Questions

Here's a problem I ran into recently. I have attributes strings of the form
Here is the issue I am having: I have a large query that needs
Here is my code, which takes two version identifiers in the form 1, 5,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Here's what I'm trying do to in a single SQL Server procedure: @ID1 int
Here is a snippet of my form <form action= method=post onsubmit=return verify()> <input type=submit
Here is a synopsis of my code which is a moderately complex WinForms GUI.
Here's a basic regex technique that I've never managed to remember. Let's say I'm
Here's my scenario - I have an SSIS job that depends on another prior
Here is a simplification of my database: Table: Property Fields: ID, Address Table: Quote

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.