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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:16:50+00:00 2026-06-04T18:16:50+00:00

I have to parse number of tags & sub tags also in XML format,

  • 0

I have to parse number of tags & sub tags also in XML format, then how it can be possible to make it smooth at the time of parsing & fetching data to display?

Please suggest the proper way of getting it parsed.

  • 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-04T18:16:52+00:00Added an answer on June 4, 2026 at 6:16 pm

    //USE NSXMLParser

    NSXMLParser *parser = [[NSXMLParser alloc]initWithContentsOfURL:[NSURL URLWithString:@"YOUR_URL"]];
    [parser setDelegate:self];
    [parser parse];
    

    // Below are the delegates which will get you the data

    -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict{
    
    if([elementName isEqualToString:@"forecast_conditions"]){
        getData = YES; // getData is a bool which is NO initialy
    }
    
    if(getData)
    {
        if([elementName isEqualToString:@"day_of_week"])
            NSLog(@"%@",[attributeDict objectForKey:@"data"]);
    
        if([elementName isEqualToString:@"low"])
            NSLog(@"%@",[attributeDict objectForKey:@"data"]);
    
        if([elementName isEqualToString:@"high"])
            NSLog(@"%@",[attributeDict objectForKey:@"data"]);
    
        if([elementName isEqualToString:@"icon"])
            NSLog(@"%@",[attributeDict objectForKey:@"data"]);
    
        if([elementName isEqualToString:@"condition"])
            NSLog(@"%@",[attributeDict objectForKey:@"data"]);
         }
    }
    
      -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{
    
        }
    
      -(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{
    
            if([elementName isEqualToString:@"forecast_conditions"]){
               getData = NO;
           }
    
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to parse Maplines for an airport. Each airport can have X number of
Possible Duplicate: C# Parse a Number from Exponential Notation I currently have: decimal value
I have made one application which can parse the given xml file independent of
Does Parse have a limit on the number of channels I can have? I
I have startdate in QueryString with value: 3/1/2012 DateTime.Parse(Request.QueryString[startdate]).Month return month number: 1 but
I have to parse a String that can assume hex values or other non-hex
I have to parse a 1Gb XML file with a structure such as below
I have to parse a XML structure in JAVA using the SAX parser. The
I have an xml feed at this url Now im trying parse the content,
I am trying to parse an XML with various similar sets of tags. The

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.