Question:

Which XML parser performs event-oriented parsing?

Show Hint

DOM = Tree-based Parser SAX = Event-based Parser
Updated On: Jun 25, 2026
  • DOM parser
  • SAX parser
  • AJAX parser
  • JSP parser
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Concept: XML parsers are software tools that read XML documents and provide access to their contents. Two common XML parsers are:
• DOM Parser
• SAX Parser

Step 1:
Understand SAX Parser.
SAX stands for: \[ \text{Simple API for XML} \] It processes XML sequentially and generates events whenever elements are encountered.

Step 2:
Why Event-Oriented?
Events generated include:
• Start of document
• Start tag
• End tag
• End of document Applications respond to these events while parsing.

Step 3:
Compare with DOM.
DOM loads the entire XML document into memory as a tree structure. SAX works through events and consumes less memory.

Step 4:
Select the answer.
\[ \boxed{\text{SAX Parser}} \]
Was this answer helpful?
0
0