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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:58:04+00:00 2026-06-03T16:58:04+00:00

here this is below the code i need to parse the section and Company

  • 0

here this is below the code i need to parse the section and Company Sub data Using GDataXml in iOS.

-<MainList>
    <FirstMessage>Right</FirstMessage>
    <SecondMessage>Wrong</SecondMessage>
    <Status>0</Status>
   -<CompanyList>
     -<Company>
         <Address1>12447 Hedges Run Drive</Address1>
         <Address2>#B-1 </Address2>
         <City>Lake Ridge</City> 
         <CompanyName>Starbucks</CompanyName>
         <CreatedBy>example@example.com</CreatedBy>
     -</Company>
      -<Company>
         <Address1>12447 Hedges Run Drive</Address1>
         <Address2>#B-1 </Address2>
         <City>Lake Ridge</City>
         <CompanyName>Starbucks</CompanyName>
         <CreatedBy>example@example.com</CreatedBy>
      -</Company>
   </CompanyList>
</MainList>

Here is My Try i am getting every thing fine but i am getting nothing in NSArray arr.

  NSArray *channels = [rootElement elementsForName:@"CompanyList"];  
  for (GDataXMLElement *icon in channels) {  
  NSArray *arr = [icon elementsForName:@"Company"];  
  if ([arr count]>0)  
  {  
        NSlog(@"Done");  
  }  
} 
  • 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-03T16:58:06+00:00Added an answer on June 3, 2026 at 4:58 pm

    Hello guys i figured it out as follows

    GDataXMLDocument *xmlDocument = [[GDataXMLDocument alloc]initWithData:xmlData options:0 error:&error];

    NSLog(@"Error:%@",[error description]);
    
    NSArray *getData = [[xmlDocument rootElement]elementsForName:@"CompanyList"];
    NSArray  *tempArray = [[NSMutableArray alloc]init];
    
    for(GDataXMLElement *e in getData)
    {
    
        NSArray *el = [e elementsForName:@"Company"];
    
        for (GDataXMLElement *e in el) {
            static int count =0;
            NSString    *testString = [[[e elementsForName:@"Address1"] objectAtIndex:0] stringValue];
            NSLog(@"Company  %d  : %@",count+1, testString);
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using toLocalizedTime to output a date, as below <span tal:content=python:here.toLocalisedTime(date.get('start_date'))/> This outputs eg.
Here in this html i need to get the image name arrow_down using jquery
For some reason my code here (this is the entire thing) doesnt actually render
Here in this code: $('#doneItem').click(function(){ $(this).each(function(index){ var item = 'personal' + index; alert(item); localStorage.removeItem('personal'
I have a problem here with this code. I'm opening a socket, then listening
I need to remove time from a Date Object. Here is my try, Code:
Please see this below PHP code: <?php require '../src/facebook.php'; $facebook = new Facebook(array( 'appId'
Please help me parse a configuration file of the below prototype using lxml etree.
I am using below code DateTime dtt=new DateTime(); dtt = Convert.ToDateTime(FromDate); // DateTime dtt
I am trying to add calendar event using the below code in my android

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.