XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> Java, SAX Tutorials -> Chapter 3: Producing SAX2 Events

Chapter 3: Producing SAX2 Events

Date: Jan. 27, 2002
Link: http://www.oreilly.com/catalog/sax2/chapter/ch03.html
Source Author or Organization: David Brownell, O'Reilly & Associates

Producing SAX2 Events is a chapter excerpted from David Brownell's book SAX2, published by O'Reilly & Associates. The chapter covers XMLReader, an interface that must be implemented by an XML parser's Simple Application Programming Interface for XML 2.0 (SAX2) driver. SAX2's XMLReader module replaces the SAX1 Interface Parser module.

Brownell presents XMLReader in functional groups, with a quick description of what each handler in each group does (the handlers are explored in detail in the next chapter of the book). He then covers several ways to "bootstrap" XMLReader, with instructions on using it with Aelfred2, Crimson, Xerces and Java API for XML Processing (JAXP). Also covered are SAX2's new XMLFilter interface, using EntityResolver Interface to access and parse external entity data and alternate XML to SAX event callback methods using DOM4J, JDOM and Comma Separated Values (CSV).