
NOTE
If needed, the application can build a DOM tree from the events it receives from the
parser. In fact, several object-based parsers are built around an event-based parser.
Internally, they use an event-based parser and they create objects in response to the
events the parser generates.
Why Use Event-Based Interfaces?
Which type of interface do you use? An object-based or an event-based
interface? Unfortunately, there is no clean-cut answer to this question.
Neither of the two interfaces is intrinsically better; they serve different
needs.
The main reason people prefer event-based interfaces is efficiency. Event-
based interfaces are lower level than ...