The simple filter example demonstrates how SAX can be used to filter content to create a subset of the original document being parsed. In this example, the application parses books.xml and produces a document fragment that contains only <title>
elements and characters. The application is kept simple to demonstrate the fundamental principles involved in transforming documents with SAX, including the following:
This topic is divided into the following sections: