This article aims to illustrate how loose coupling of a Model in an MVC-based
framework can be achieved by describing a real example - developing a
framework for a Web-based XSD-XML generator, which is part of the Event Web
research at the Infospheres Lab at Caltech. Why this is important is
explained, along with a description of the various techniques used to
accomplish the goal. Examples include: how a Model can be initiated in a
modular manner; how to add dynamic properties to a Model without polluting
the Model base classes; how to change the Model without affecting its
existing operations; how the Model can be switched during runtime without
affecting interactions with other components; how all these can be done if
the Model is complex as in a DOM structure and is generated dynamically.
Design patterns are largely employed to construct the framework; how the
... (more)