BN.com Gift Guide

Sax2

Overview

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 ...

See more details below
Other sellers (Paperback)
  • All (26) from $1.99   
  • New (7) from $16.36   
  • Used (19) from $1.99   
Sending request ...

Overview

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, generatingyour 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 ownprogram 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 restructureinformation in layers of processing which make it easy to reuse generic tools. SAX2 also has some significant limitations that applications need to address in theirown 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.

Until now, developers have had to rely on confusing and inadequate piecemeal documentation of this essential tool for processing XML information. Or they had to be content with the mini-tutorials found in books on XML. Written by an experienced XML developer in an accessible tutorial format, "SAX2" isn't just the most in-depth book available on the subject, it's the only book available.

Read More Show Less

Product Details

  • ISBN-13: 9780596002374
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 12/1/2001
  • Edition number: 1
  • Pages: 240
  • Sales rank: 1,061,200
  • Product dimensions: 6.06 (w) x 9.00 (h) x 0.59 (d)

Meet the Author

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.

Read More Show Less

Table of Contents

Preface;
Who Should Read This Book?;
Organization of This Book;
Conventions Used in This Book;
How to Contact Us;
Acknowledgments;
Chapter 1: The Simple API for XML;
1.1 Types of XML APIs;
1.2 Why Choose SAX?;
1.3 Why Not to Choose SAX?;
1.4 A Short History of SAX;
1.5 Packages in the SAX2 API;
1.6 Some Popular SAX2 Parser Distributions;
1.7 Installing a SAX2 Parser;
1.8 What XML Are We Talking About?;
Chapter 2: Introducing SAX2;
2.1 Producers and Consumers;
2.2 Beginning SAX;
2.3 Basic ContentHandler Events;
2.4 Producer-Side Validation;
2.5 Exception Handling;
2.6 Namespaces and SAX2;
Chapter 3: Producing SAX2 Events;
3.1 Pull Mode Event Production with XMLReader;
3.2 Bootstrapping an XMLReader;
3.3 Configuring XMLReader Behavior;
3.4 The EntityResolver Interface;
3.5 Other Kinds of SAX2 Event Producers;
Chapter 4: Consuming SAX2 Events;
4.1 More About ContentHandler;
4.2 The LexicalHandler Interface;
4.3 Exposing DTD Information;
4.4 Turning SAX Events into Data Structures;
4.5 XML Pipelines;
Chapter 5: Other SAX Classes;
5.1 Helper Classes;
5.2 SAX1 Support;
Chapter 6: Putting It All Together;
6.1 Rich Site Summary: RSS;
6.2 XML and Messaging;
6.3 Including Subdocuments;
SAX2 API Summary;
The org.xml.sax Package;
The org.xml.sax.helpers Package;
The org.xml.sax.ext Package;
SAX2 and the XML Infoset;
Event Producer Issues;
Event Consumer Issues;
Document Information Item;
Element Information Items;
Attribute Information Items;
Processing Instruction Information Items;
Unexpanded Entity Reference Information Items;
Character Information Items;
Comment Information Items;
Document Type Declaration Information Item;
Unparsed Entity Information Items;
Notation Information Items;
Namespace Information Items;
Colophon;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)