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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:47:34+00:00 2026-06-08T23:47:34+00:00

I have a big xml file that could be downloaded from the internet. To

  • 0

I have a big xml file that could be downloaded from the internet. To parse it I tried using the DOM parser however it doesn’t let me skip certain tags as it gives me an error. Is there a way around this? If i understood correctly the SAX parser allows you to skip tags whilst the DOM doesn’t. Can someone kindly clarify this fact, as if that is the case, I can’t understand what is the advantage of a DOM parser. Thanks in advance.

  • 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-08T23:47:36+00:00Added an answer on June 8, 2026 at 11:47 pm

    DOM was designed as a language-independent object model to hold any XML data, and as such is a large and complex system. It suits well the two-phase approach of first loading an XML document in, then performing various operations on it.
    SAX, on the other hand, was designed as a fairly light-weight system using a single-phase approach. With SAX, user-specified operations are performed as the document is loaded. Some applications use SAX to generate a smaller object model, with uninteresting information filtered out, which is then processed similarly to DOM.
    Note that although DOM and SAX are the well-known “standard” XML APIs, there are plenty of others available, and sometimes a particular application may be better off using a non-standard API. With XML the important bit is always the data; code can be rewritten.

    Some quick points:

    1. SAX is faster than DOM.
    2. SAX is good for large documents because
      it takes comparitively less memory than Dom.
    3. SAX takes less time
      to read a document where as Dom takes more time.
    4. With SAX we can
      access data but we can’t modify data.With Dom we can modify data.
    5. We can stop the SAX parsing when ever and where ever you want.
    6. SAX is sequential parsing but with DOM we can move to back also.
    7. To parse machine generated code SAX is better.To parse human
      readable documents DOM is useful.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a fairly big XML file that I need to parse into a
I have a big XML file (~20 MB) that contains among others such lines:
I have a big xml file which i'm parsing using jscript. I have used
I have to parse a big HTML file, and Im only interested in a
Here's what I want to do. I have a big xml file (there are
I have a xml file containing 1 small graphic and 1 big graphic. In
I have a variable $x whose value is read in from an XML file.
I'm trying to get data from a webpage that serves a XML file periodically
I am parsing through a XML file that's about 12mb big. I need to
I have a big (1.9 GB) XML file which has data I want to

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.