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
Top TS PGECET Computer Science & Information Technology Questions