Home   FAQs   New Arrivals   Specials   Pricing & Shipping   Location   Corporate Services  
 Search:   
 View Cart   Check Out   
 
Browse by Subject
I.T
 .NET 3.5
 Windows 2000/XP
 Cisco
 Java
 Office XP
 VB
 ASP
 UML
 Web Design
 E-Commerce
 Project Management
 Macintosh
 Linux
 Windows Server 2008
 Sharepoint 2007
Certification
 MCITP
 MCTS
Economics and Business
 Accounting
 Business Information Systems
 Economics
 Finance
 Management
 Marketing
 Human Resources
 OneKey Textbooks

SAX2

by: David Brownell

Notify me when in stock

On-line Price: $44.00 (includes GST)

Paperback package 216

20%Off Retail Price

You save: $11.00

Retail Price: $55.00

Publisher: O'REILLY,Feb-2002

Category: XML Level: I/A

ISBN: 0596002378
ISBN13: 9780596002374

Add to Shopping Cart

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.


  This concise book gives you the information you need to effectively use the Simple API for XML (SAX2), the dominant API for efficient XML processing with Java. With the SAX2 API, developers have access to the information in XML documents as they are read, without imposing major memory constraints or a large code footprint. SAX2 is often used by other APIs 'under the covers', and provides a foundation for processing and creating both XML and non-XML information.


  While generally considered the most efficient approach to handling XML document parsing, SAX2 also carries a significant learning curve. In SAX2, author David Brownell explores the many details of managing XML parsers, filtering the information those parsers return, generating

your own SAX2 events to convert non-XML information to an XML form, and developing strategies for using event-based parsing in a variety of application scenarios.


  Created in a public process by the XML-Dev mailing list, the SAX2 API is compact and highly functional. SAX2 uses callbacks to report the information in an XML document as the document is read, allowing you to create your own

program structures around the content of documents. No intermediary model of an entire XML document is necessary, and the mapping from XML structures to Java structures and back is straightforward.


  Both developers learning about SAX2 for the first time and developers returning for reference and advanced material about SAX2 will find useful information in this book. Chapters provide detailed explanations and examples of many different aspects of SAX2 development, while appendices provide a reference to the API and an explanation of the relationships between the SAX2 API and the XML Information Set.


  While the core of the API is quite approachable, many of its more advanced features are both obscure and powerful. You can use SAX2 to filter, modify, and restructure

information in layers of processing which make it easy to reuse generic tools. SAX2 also has some significant limitations that applications need to address in their

own ways. This new book gives you the detail and examples required to use SAX2 to its full potential, taking advantage of its power while avoiding its limitations.


  

Table of Contents

Preface


  Chapter 1. The Simple API for XML


    Types of XML APIs


    Why Choose SAX?


    Why Not to Choose SAX?


    A Short History of SAX


    Packages in the SAX2 API


    Some Popular SAX2 Parser Distributions


    Installing a SAX2 Parser


    What XML Are We Talking About?


  Chapter 2. Introducing SAX2


    Producers and Consumers


    Beginning SAX


    Basic ContentHandler Events


    Producer-Side Validation


    Exception Handling


    Namespaces and SAX2


  Chapter 3. Producing SAX2 Events


    Pull Mode Event Production with XMLReader


    Bootstrapping an XMLReader


    Configuring XMLReader Behavior


    The EntityResolver Interface


    Other Kinds of SAX2 Event Producers


  Chapter 4. Consuming SAX2 Events


    More About ContentHandler


    The LexicalHandler Interface


    Exposing DTD Information


    Turning SAX Events into Data Structures


    XML Pipelines


  Chapter 5. Other SAX Classes


    Helper Classes


    SAX1 Support


  Chapter 6. Putting It All Together


    Rich Site Summary: RSS


    XML and Messaging


    Including Subdocuments


  Appendix A. SAX2 API Summary

Appendix B. SAX2 and the XML Infoset


  Index