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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:23:00+00:00 2026-05-23T01:23:00+00:00

Yes I agree, it is a homework exercise to parse xml with NSXMLParser and

  • 0

Yes I agree, it is a homework exercise to parse xml with NSXMLParser and update with DB.

Is there a opensource library available to export given table of sqlite db to an xml? where it can use field name as xml element/tag. I want to try some tested solution.

I’m developing a module where I’d to export tables to xml and import to db on demand.

I currently use https://github.com/skjolber/xswi to create the xml file. It is taking quite a long time and crash often (Could not allocate data buffer ) at the very end (after completig 90%), since the test data I’ve is around 100,000 records. I guess it is due to memory allocation, I do clear the NSDictionary used after each record and append to the file (not keeping everything memory).

Also the file generated is around 70-80 Mb where compressed version of file (.zip) is around 50k. Is it correct to create XML or CSV?

It would be really helpful if someone suggest a right method to proceed.

  • 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-23T01:23:01+00:00Added an answer on May 23, 2026 at 1:23 am

    Usually xml only gets long and complicated when you utilise ALL the functionality, in the minimal case you should be able to create a simple xml file from a sqllite table just by writing out

    <?xml version="1.0"?>
    <tablename>
       <row>
          <columnname1>content</columnname1>
          <columnname2>content</columnname2>
       </row>
       <row>
       </row>
    </tablename>
    

    doing this in a loop in the iteration for each row should not need any memory allocations that would depend on the size of the table. You don’t really need an external library to do that.

    As for size, xml is not know for its terseness, but there is a lot of repetition so it would compress a lot.

    NSXMLParser is an EventBase SAX-like parser, this means that it also should not have any problems with the size of the xml file. It should never build a representation of the whole xml file. I don’t have any experience with xswi so I cannot speak for that.

    As for the error message (you can find that in the source code of xswi), think about how objective-c handles memory and when autoreleased memory actually gets released. And then look at how you are using xswi

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

Sidebar

Related Questions

Yes, another NULL vs empty string question. I agree with the idea that NULL
Yes, There's More Than One Way To Do It but there must be a
Yes, there is a similar question here . However, that question doesn't seem to
Yes, the problem is with a library I'm using, and no, I cannot modify
Yes I know there has been similar posts to this however after looking through
Consider: [self.navigationController popToViewController:[[self.navigationController viewControllers]objectAtIndex:1] animated:YES]; Is there a better way to get index of
Yes, I agree the title suggests my current line of thinking is defective. BUT
Yes, I know. The existence of a running copy of SQL Server 6.5 in
...Yes I've seen: Best Resources for Learning JavaFX? but it doesn't really answer the
Yes, I know you could use regular objects as associative arrays in JavaScript, but

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.