Event-based parser: Views an XML document as a series of events. When a
specific event occurs, it calls a function to handle it
The Expat parser is an
event-based parser.
Event-based parsers focus on the content of the XML documents, not their structure. Because of this, event-based parsers can access data faster than
tree-based parsers.