XMLController

The XMLController class is used to control the execution of the actual SAX parsing process, and provides an interface to define the particular SAXHandler and BusinessObject classes required to process a particular XML message. The code required is shown in Figure 11-13.

The {constructor} is used to instantiate an instance of the class with the correct classes for a specific SAX parsing process, and a developer would pass across references to sub-classes of both the BusinessObject and SAXHandler. These sub-classes would contain the specific application logic required to process a particular XML message set.

Figure 11-13. XMLController.constructor method listing.
 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| || File: ...

Get Enterprise Curl 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.