The Model-View-Controller Architecture and XML

I introduced you to Swing's usage of the Model-View-Controller (MVC) paradigm in the previous section. Though well suited for the design of graphical user interface components, the MVC architecture scales upward to applications and even systems. It is important to understand where XML fits in this picture, from Swing components on up.

Figure 7.3 is a high-level representation of the MVC architecture. The key elements of the diagram are the one-to-many relationships between the model and the controllers and the model and the views. Of course, the model being the abstract representation of some data correlates perfectly with XML as the premiere format for structured data. Another interesting artifact ...

Get XML Development with Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.