Example Source Code from Chapter 8, SAX Filters, of Processing XML with Java
Example 8-1 The XMLFilter interface
Example 8-2 A filter that blocks all events
Example 8-3 A filter that filters nothing
Example 8-4 A filter that times all parsing
Example 8-5 Parsing a document through a filter
Example 8-6 A ContentHandler filter
Example 8-7 A filter that substitutes its own ContentHandler
Example 8-8 A program that filters documents
Example 8-9 A ContentHandler filter that throws away non-XHTML elements
Example 8-10 The AttributesImpl helper class
Example 8-11 Changing one element into another
Example 8-12 A subclass of XMLFilterImpl
Example 8-13 Accessing databases through SAX
Example 8-14 A very simple user interface for extracting XML data from a relational database
Example 8-15 Attaching multiple handlers of the same type to a single parser
Examples from Other Chapters
|
Processing XML with Java
|
Cafe con Leche
Copyright 2002 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified November 23, 2002