Example Source Code from Chapter 7, The XMLReader Interface, of Processing XML with Java
Example 7-1 The SAX InputSource class
Example 7-2 The EntityResolver interface
Example 7-3 An XHTML EntityResolver
Example 7-4 The SAXException class
Example 7-5 The SAXParseException class
Example 7-6 A SAX program that parses a document and identifies the line numbers of any well-formedness errors
Example 7-7 The ErrorHandler interface
Example 7-8 A SAX program that reports all problems found in an XML document
Example 7-9 A SAX program that validates documents
Example 7-10 A SAX program that echoes the parsed document
Example 7-11 The LexicalHandler interface
Example 7-12 An implementation of the LexicalHandler interface
Example 7-13 The DeclHandler interface
Example 7-14 A program that prints out a complete DTD
Example 7-15 Making maximal use of Xerces’s special abilities
Example 7-16 The DTDHandler interface
Example 7-17 A caching DTDHandler
Example 7-18 A Notation utility class
Example 7-19 An UnparsedEntity utility class
Example 7-20 A program that lists the unparsed entities and notations used in an XML document
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