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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:21:27+00:00 2026-06-15T20:21:27+00:00

I have about 15 URLs for XML Parsing simultaneously. I am using KMXML Parser

  • 0

I have about 15 URLs for XML Parsing simultaneously. I am using KMXML Parser for XML parsing.

How can i do Parsing simultaneously using thread. How to handle the responses form that parsing. How can i store those responses in Sq-lite Database.

My code for parsing is as follow:

 NSArray* yourURLs = [NSArray arrayWithObjects:@"http://www.designworldonline.com/rss/",@"http://www.3dcadtips.com/feed/",@"http://feeds.feedburner.com/MakePartsFast",@"http://www.designworldonline.com/category/technologies/electricalelectronic/feed", nil];

for(NSString* url in yourURLs) {
        [self performSelectorInBackground:@selector(parse:) withObject:url];
    }

-(void)parse:(NSString*)link {

KMXMLParser *parser = [[KMXMLParser alloc] initWithURL:link delegate:self];
    _parseResults = [parser posts];

     [self performSelectorOnMainThread:@selector(update)  withObject:_parseResults waitUntilDone:NO];

}

-(void)update
{
 [pd addObject:_parseResults];
}

But with this coding,
_parseresults=[parser posts]; is called only for last link rather than for each link.

and i got response in array pd is only from last link & 9 times. i don’t know why parsing method is only called last time only.

  • 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-15T20:21:29+00:00Added an answer on June 15, 2026 at 8:21 pm

    try to use framework will help you very will

    https://github.com/AFNetworking/AFNetworking

    https://github.com/pokeb/asi-http-request

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

Sidebar

Related Questions

My project have data about different websites so I have rewritten urls using .htaccess
I have an application that reads an xml file every 5 minutes (using a
I have a list that contains about 20 image URLs and some other things.
So basically, I have two fast questions about kohana urls. 1) With default .htaccess
I have about 20 grid views that I have to create. All of them
I have about 8 entities that all have a one to one relationship with
i have about 20 possible exception messages that i want thrown when an error
I have about 10 drop down list controls that get populated. Instead of copying/pasting
I have a certain page (we'll call it MyPage) that can be accessed from
If I have an XML file that looks like this: <properties> <property> <picture>http://example.com/image1.jpg</picture> <picture>http://example.com/image2.jpg</picture>

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.