
Figure 7.1: Architecture of an XML program
Note that the application can be very simple (such as printing information
on the screen), or quite complex (such as a browser or an editor).
This chapter and the next one concentrate on the dotted line between the
two elements. This is the interface, or the communication path, between
the parser and the application.
The parser and the application must share a common model for XML data.
In practice, the common model is always some variation on a tree in mem-
ory that matches the tree in the XML document.
The parser reads the XML document and populates the tree in memory.
This tree built by the parser is an exact ...