Buying Options
SAX2
Print $29.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £22.99
Add to Cart
What is this?
Description
This concise book gives you information you need to effectively use the Simple API for XML (SAX2), the dominant API for efficient XML processing with Java. With SAX2, developers have access to information in XML documents as they are read without imposing major memory constraints or a large code footprint. SAX2 gives you the detail and examples required to use SAX2 to its full potential.
Full Description
Table of Contents
  1. Chapter 1 The Simple API for XML

    1. Types of XML APIs

    2. Why Choose SAX?

    3. Why Not to Choose SAX?

    4. A Short History of SAX

    5. Packages in the SAX2 API

    6. Some Popular SAX2 Parser Distributions

    7. Installing a SAX2 Parser

    8. What XML Are We Talking About?

  2. Chapter 2 Introducing SAX2

    1. Producers and Consumers

    2. Beginning SAX

    3. Basic ContentHandler Events

    4. Producer-Side Validation

    5. Exception Handling

    6. Namespaces and SAX2

  3. Chapter 3 Producing SAX2 Events

    1. Pull Mode Event Production with XMLReader

    2. Bootstrapping an XMLReader

    3. Configuring XMLReader Behavior

    4. The EntityResolver Interface

    5. Other Kinds of SAX2 Event Producers

  4. Chapter 4 Consuming SAX2 Events

    1. More About ContentHandler

    2. The LexicalHandler Interface

    3. Exposing DTD Information

    4. Turning SAX Events into Data Structures

    5. XML Pipelines

  5. Chapter 5 Other SAX Classes

    1. Helper Classes

    2. SAX1 Support

  6. Chapter 6 Putting It All Together

    1. Rich Site Summary: RSS

    2. XML and Messaging

    3. Including Subdocuments

  1. Appendix A SAX2 API Summary

    1. The org.xml.sax Package

    2. The org.xml.sax.helpers Package

    3. The org.xml.sax.ext Package

  2. Appendix B SAX2 and the XML Infoset

    1. Event Producer Issues

    2. Event Consumer Issues

    3. Document Information Item

    4. Element Information Items

    5. Attribute Information Items

    6. Processing Instruction Information Items

    7. Unexpanded Entity Reference Information Items

    8. Character Information Items

    9. Comment Information Items

    10. Document Type Declaration Information Item

    11. Unparsed Entity Information Items

    12. Notation Information Items

    13. Namespace Information Items

  3. Colophon

View Full Table of Contents
Product Details
Title:
SAX2
By:
David Brownell
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
January 2002
Pages:
240
Print ISBN:
978-0-596-00237-4
| ISBN 10:
0-596-00237-8
Customer Reviews
About the Author
  1. David Brownell

    David Brownell is a software engineer. He's been involved with SAX since shortly after the XML 1.0 specification went final, and is currently involved in maintaining the SAX APIs and the GNUJAXP implementation. When he worked at Sun, he started the Java XML engineering effort, including SAX support, as a natural follow-on to the servlet based web software infrastructure.

    View David Brownell's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of SAX2 is a pampas cat. Not much is known about this cat, as extensive studies on it have never been done. For instance, the pampas cat is believed to be mainly nocturnal and to live primarily on the ground. However, some pampas cats that reside in zoos have been observed as being somewhat active in daylight, as well as comfortable spending time in trees.

The pampas cat is native to South America. Its natural habitat allows for quite a range, as some species are found in grasslands, some in mountain regions, and some in swampy areas. It is not a large cat, weighing only between 7 and 8 pounds when fully grown. Its features are marked by a wide face and pointed ears. The color and markings on its fur are determined by the area in which it lives. For example, in the Andes Mountains, the cat is found with gray fur and red stripes; Brazilian cats are reddishbrown with black stripes; and cats living in Argentina are a light brown shade and have faint markings. The stripes always appear on the cat's legs and torso, and the cat has very long hair, which can grow up to three inches long. When the cat is frightened, these hairs stand on end, which makes the cat seem larger, as well as more menacing. This no doubt serves as a deterrent to predators.

The pampas cat population was dwindling for a time, as the cat was hunted for its skin. However, in 1980 laws were passed against this, so that particular threat to the species seems to have passed. Now the main danger is the growing human population, which is infringing on the pampas cat's home in the plains and forests. Mary Brady was the production editor and proofreader and Melanie Wang was the copyeditor for SAX2. Colleen Gorman, Matt Hutchinson, and Claire Cloutier provided quality control. Derek Di Matteo and Philip Dangler provided production support. Joe Wizda wrote the index.

Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from Mammalia. Emma Colby produced the cover layout with QuarkXPress 4.1, using Adobe's ITC Garamond font.

Melanie Wang designed the interior layout based on a series design by Nancy Priest. The print version of this book was created by translating the DocBook XML markup of its source files into a set of gtroff macros, using a filter developed at O'Reilly & Associates by Norman Walsh. Steve Talbott designed and wrote the underlying macro set on the basis of the GNU troff --gs macros; Lenny Muellner adapted them to XML and implemented the book design. The GNU groff text formatter Version 1.11.1 was used to generate PostScript output. The text and heading fonts are ITC Garamond Light and Garamond Book. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read, using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Mary Brady.

Whenever possible, our books use a durable and flexible lay-flat binding.

  • Book cover of SAX2