SAX2
By David Brownell
January 2002
Pages: 240
ISBN 10: 0-596-00237-8 |
ISBN 13: 9780596002374




(Average of 2 Customer Reviews)


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
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.
Featured customer reviews

SAX2 Review,
August 18 2002
Submitted by RP
[
Respond |
View]
GOOD Book
I am quite new to XML, its only since past 5 months I have been working on XML using Java & Oracle. This book just deals with SAX,SAX & SAX, & hence I find it quite different from other books on XML which deal with almost every thing related to XML and therefore don't deal any topic in detail. A title like 'Just SAX2' would be more appropriate.
SAX2 Review,
February 15 2002
Submitted by Gordon Anderson
[
Respond |
View]
This book is
Superb!
Its a concise introduction which assumes you can think, have programmed before and are in a hurry. Dont avoid this book if you have only used say C/C++, not java - its still mostly applicable, and easy to read the Java samples anyway.
It raises some great ideas that you may have been on the verge of discovering yourself - or have even implemented your own way, less nicely - such as pipelining.
The author has obviously used all the parsers out there, and mentions the odd bug that could save you a lot of hairpulling. It would seem the author has a preference for gnu tools and an aversion for the complexity of the DOM model - which I would value after working thru the book.
The only detractor is the presence of a few typos - he covers the important stuff and there is _no_ crud.
[ps. Ive been developing for 10 years, and am using xml pipelining and SAX2 to do a port of a bank intranet site, which I previously wrote in C]
Read all reviews
Media reviews
"A clear and thorough description of SAX and abundant code samples."
--James Hoopes, E-Pro Magazine, January 2003
"If you do now, or plan to do, any serious work with streaming XML documents or messages, this book is well worth its low entry price. All around this is a typical O'Reilly book. The craftsmanship, writing, and editing are of good quality, the topic is well explored, and the errors, if present, are undetectable. The material is well articulated, covers the ground it needs to cover and tends to be well focused...these pages contain no fluff."
--Claude Duguay, JavaPro, June 2002
Read all reviews