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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:23:40+00:00 2026-06-04T00:23:40+00:00

i am developing one application.In that i perform the xml parsing and get the

  • 0

i am developing one application.In that i perform the xml parsing and get the 400 questions.For getting these questions i created one class with that question attributes.When the question tag is fired i created one object for that class and saved that attributes information and when the didendelement fired for that class i added that class object into one array.Like this i create an object for every question.When i do like this it will take lot of memory and the process is also slow.If i run this one on background it will take same time.SO please tell me how to do this one with less memory.My parsing code is like

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict  
{
    if([elementName isEqualToString:@"question"])
    {
        questions=[[Questions alloc]init];
        questions.content=[attributeDict valueForKey:@"content"];
        questions.id=[attributeDict valueForKey:@"id"];
        questions.answer=[attributeDict valueForKey:@"answers"];
        questions.type=[attributeDict valueForKey:@"type"];
        questions.markertext=[attributeDict valueForKey:@"marker_text"];
        questions.markertop=[attributeDict valueForKey:@"marker_top"];
        questions.markerleft=[attributeDict valueForKey:@"marker_left"];
    }
 }


- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
{
   [qshns addObject:questions];
}  

Here qshns is the one array.

  • 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-04T00:23:41+00:00Added an answer on June 4, 2026 at 12:23 am

    There is only one way to occupy less memory, that is just hit XML class just only one time and store it into an array or database in any singleton class. Then use it everywhere you want. Never hit XML class again and again it will occupy your large memory.

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

Sidebar

Related Questions

iam developing one application.In that iam using the xml parsing.That xml file contain the
Iam developing one application.In that i take the string from array and replace .xml
im new one for android. im developing one application that application getting videos from
Iam developing one application.In that i use the google api for getting the location
Iam developing one application.In that i use the google api for getting the location
I am developing one application that has many controls to format the text. The
i am developing one application.In that i have 10 images .i want to move
i am developing one application.In that i need to take the capture the video
I'm developing one application for iphone using phone gap.I that I need to display
I am developing one web application. In that i want to use variable's value

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.