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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:17:58+00:00 2026-06-17T06:17:58+00:00

I have been developing a fairly simple app for iOS and Android that parses

  • 0

I have been developing a fairly simple app for iOS and Android that parses local xml in order to form lists of items and show information about them. When looking into my parsing options, I settled on the native SAX parser for android, as well as the NSXMLparser class that is built in to objective-C. When looking at my options, I repeatedly saw people saying that DOM parsers are not suitable for large xml files. However, no one ever defined exactly what “large” meant. In a later version of the app, I am thinking about switching to a DOM parser.

My question is: Where do you draw the line, and eliminate DOM parsers as an option? The platforms in question are iOS and Android, both of which, of course still have many old devices floating around. So, assuming a slower-than-average device, where is the line drawn?

Thank you for your consideration.

  • 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-17T06:17:59+00:00Added an answer on June 17, 2026 at 6:17 am

    DOM parsers have to load whole XML into memory. Also, it is typical that parsed XML will occupy 5x-10x memory compared to size of original XML.

    If you know that allowed memory consumption of your application is say N megabytes of RAM, then you can draw that line yourself: divide N by 10.

    For example, if you don’t want to go over 10MB of RAM, your XML should not exceed 1MB.

    Only most recent devices have 1GB of RAM (divided among all apps), older devices had 512MB and even 256MB. 256MB/10 = 25MB. You probably don’t want to eat more than 10% of all memory, so anything over 2.5MB for DOM XML supported on all platforms is way too much.

    But, this is just rule of thumb, and only real life test can tell you the truth.

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

Sidebar

Related Questions

I have been developing a simple touch handler for Android with the possibilites of
I have been developing a project in eclipse for an android app. An error
I have been developing an app for weeks on a desktop computer. I have
I have been developing in Android for approximately two months now. Yesterday, my eclipse
I have been developing the application, and I need that drawingg is executed in
I have been developing a small Java utility that uses two frameworks: Encog and
I have been developing a application for 8 months now that has been utilizing
I have been developing test builds of an app for some time and have
I have been developing some Django app and there's some duplicated code for different
I have been developing a web app using play framework for a while (using

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.