December 1999
Intermediate to advanced
992 pages
22h 3m
English
In Chapter 13, "Parsing XML with Java," you saw how to get a SAX parser object using the standard ParserFactory methods. These parser objects issue a series of method calls to objects provided by the application. These are the callbacks (or callback events ) that your handlers must support. In this chapter, you'll learn how to configure and work with that object. Briefly, you'll use it in any single thread as follows:
Set up event handlers.
Tell it to parse your XML text.
Respond to all the callbacks during parsing.
Repeat steps 1–3 until you're done.
We'll look at those handlers throughout this chapter. Figure 16.1 illustrates the flow of data through a parser and the event handlers.
Read now
Unlock full access