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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:33:14+00:00 2026-06-04T14:33:14+00:00

I want to know the difference between the four above types (SAXPaser, XPath, DOM,

  • 0

I want to know the difference between the four above types (SAXPaser, XPath, DOM, XMLPullParse) and when should we use each one.

  • 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-04T14:33:16+00:00Added an answer on June 4, 2026 at 2:33 pm

    SAX Parsing is the Best one to implement than DOM, see the difference between these two in the following:

    DOM

    The Nodes are in the form of Tree Structure
    Memory: It Occupies more memory, DOM is only preffered in the case of small XML documents
    Slower at runtime
    Stored as an objects
    Programmatically easy to implement
    Ease of navigation and use.

    SAX

    Sequence of events
    It doesn’t use any memory preferred for large documents.
    Faster at runtime, because of the above mentioned point.
    Objects are to be created.
    Need to write code for creating objects
    In SAX Backward navigation is not possible as it sequentially processes the document

    So if you have very large files then you should use SAX parser since it will fire events and releasing them ,nothing is stored in memory ,and using SAX parser you can’t access element in a random way there is no going back ! , but Dom let you access any part of the xml file since it keeps the whole file/document in memory .

    see this article and you can get what you want by reading the Summary.

    also check this link to view performance of different xml parser

    enter image description here

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

Sidebar

Related Questions

I want to know the difference between setInterval() (or) setTimeout() in DOM and polling
I want to know the difference between these two statements. Is one 'better' than
I want to know the difference between : $this->forward(module, action); And $this->redirect(module/action); My first
I just want to know the difference between List<string> lst = new List() and
I am a shell script newbie. I want to know the difference between ${var%pattern}
I want to know the main difference between .live() vs. .bind() methods in jQuery.
Want to know what is the difference between ipv4 and ipv6 and how does
I want to know what's the difference between OracleServiceORAL service(on Window XP) and Oracle
I want to know what is the difference between .Net Framework and .Net MonoframeWork
I just want to know what is the difference between these two messaging constants.

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.