Chapter 4 XML Processing
Figure 4.10 shows the class diagram for a basic XML document editor design,
while Figure 4.11 shows the class diagram for an XML document editor factory
design. You should consider using a similar design in the following situations:
When you want to keep the business objects focused on business logic and
keep code to interact with XML documents separate from business logic code.
In a similar way, when you want to keep the Web service endpoints focused on
interaction logic and keep code to pre and post process XML documents sep
arate from interaction logic code.
Factory Design to Create Schema Specific XML Document Editors