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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:39:05+00:00 2026-05-27T07:39:05+00:00

im developing an iphone app using yahoo weather service ( i have a key

  • 0

im developing an iphone app using yahoo weather service ( i have a key ).
i have 2 question :

  1. can i use it in my app for commercial use ( like posting my app in appstore for free or no )
  2. why the xml and json result are different :
    http://weather.yahooapis.com/forecastrss?w=29330057&u=c
    and
    http://weather.yahooapis.com/forecastjson?w=29330057&u=c

there is any thing to do to much ( the first have the wanted location )?
thank you.

  • 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-27T07:39:05+00:00Added an answer on May 27, 2026 at 7:39 am

    I suspect this is an issue with XML namespaces. Depending on the framework used and the actual full XML you’d have to access the elements by their namespace. You might want to switch to another, DOM-based framework (not using NSXMLParser), for example GDataXMLNode by Google. In a DOM-based framework you can access the individual nodes in a tree-like structure instead of building one on your own.

    There are plenty of examples for this on the net, for example Building an RSS reader or How to read and write XML documents with GDataXML. But to give a quick example how this might look:

    NSError *error = nil;
    GDataXMLDocument *doc = [[GDataXMLDocument alloc] initWithData:data options:0 error:&error];
    
    if (doc == nil) { return nil; }
    
    NSMutableDictionary *result = [[NSMutableDictionary alloc] init];
    
    NSArray *lists = [doc nodesForXPath:@"/result/list" error:nil];
    if ([lists count] > 0)
    {
        for (GDataXMLNode *list in lists) {
            int listid = [self integerInNode:list forXPath:@"listid"];
            NSString *listname = [self stringInNode:list forXPath:@"name"];
    
            [result setValue:[NSNumber numberWithInt:listid] forKey:listname];   
    
        }     
    }
    [doc release];
    return [result autorelease]; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been developing my first iPhone app part-time and would like to start using
I'm developing an iPhone app and have a question about memory management. Let's say
I'm developing an iphone app and I have a JSON from web service as
I am developing an iphone app using xcode. I would like to automate the
How to develop an iPhone app using its webviewer? Like in Andriod we can
Am looking into developing an iPhone native app using Titanium Developer Since this is
Im developoing an app for the iPhone where users can chat using their facebook
I am developing native iPhone app. I have one requirement that, there are 5
I am developing an iPhone app using cocos2d and box2d.In this app i require
I am developing an iPhone app and are using xCode to do Build and

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.