Basic Structure Dom Based Module





In contrast to the role of the application during event based parsing, the focus of the activity in a DOM based application is post parsing. The basic layout of an XML module using DOM might look something like this:
Here the main XML application class is no longer a handler but a manipulator of the DOM representation produced. Note that this is an important change of focus: your application's processing is no longer done at parsing time but rather in an extra module that will manipulate nodes.
The basic steps for the creation of your XML module would be:
Create and register handlers for errors and other implementation dependent activities.
Create a DOM manipulator that will have the responsibility of:
(1) issuing parsing requests to the parser
(2) manipulating the results of such requests.
Include the necessary manipulator/rest of the application interaction.
Domain Name Search
|