Main Page


   
  Table of Contents
Processing XML with Java : A Guide to SAX, DOM, JDOM, JAXP, and TrAX
By Elliotte  Rusty  Harold
   
Publisher : Addison Wesley
Pub Date : November 08, 2002
ISBN : 0-201-77186-1
Pages : 1120


Written for Java programmers who want to integrate XML into their systems, this practical, comprehensive guide and reference shows how to process XML documents with the Java programming language. It leads experienced Java developers beyond the basics of XML, allowing them to design sophisticated XML applications and parse complicated documents.

Processing XML with Java(TM) provides a brief review of XML fundamentals, including XML syntax; DTDs, schemas, and validity; stylesheets; and the XML protocols XML-RPC, SOAP, and RSS. The core of the book comprises in-depth discussions on the key XML APIs Java programmers must use to create and manipulate XML files with Java. These include the Simple API for XML (SAX), the Document Object Model (DOM), and JDOM (a Java native API). In addition, the book covers many useful supplements to these core APIs, including XPath, XSLT, TrAX, and JAXP.

Practical in focus, Processing XML with Java(TM) is filled with over two hundred examples that demonstrate how to accomplish various important tasks related to file formats, data exchange, document transformation, and database integration. You will learn how to read and write XML documents with Java code, convert legacy flat files into XML documents, communicate with network servers that send and receive XML data, and much more. Readers will find detailed coverage of the following:

  • How to choose the right API for the job

  • Reading documents with SAX

  • SAX filters

  • Validation in several schema languages

  • DOM implementations for Java

  • The DOM Traversal Module

  • Output from DOM

  • Reading and writing XML documents with JDOM

  • Searching XML documents with XPath

  • Combining XSLT transforms with Java code

  • TrAX, the Transformations API for XML

  • JAXP, the Java API for XML Processing

With thorough coverage of the key XML APIs and a practical, task-oriented approach, Processing XML with Java(TM) is a valuable resource for all Java programmers who need to work with XML.


   
  Table of Contents
Processing XML with Java : A Guide to SAX, DOM, JDOM, JAXP, and TrAX
By Elliotte  Rusty  Harold
   
Publisher : Addison Wesley
Pub Date : November 08, 2002
ISBN : 0-201-77186-1
Pages : 1120
Copyright
      Praise for Elliotte Rusty Harold's Processing XML with Java
      List of Examples
      List of Figures
      Preface
        Who You Are
        How to Use This Book
        The Online Edition
        Some Grammatical Notes
        Contacting the Author
        Acknowledgments
     
      Part  I.   XML
        Chapter  1.   XML for Data
        Motivating XML
        XML Syntax
        Validity
        Stylesheets
        Summary
     
        Chapter  2.   XML Protocols: XML-RPC and SOAP
        XML as a Message Format
        HTTP as a Transport Protocol
        RSS
        Customizing the Request
        XML-RPC
        SOAP
        Custom Protocols
        Summary
     
        Chapter  3.   Writing XML with Java
        Fibonacci Numbers
        Writing XML
        Output Streams, Writers, and Encodings
        A Simple XML-RPC Client
        A Simple SOAP Client
        Servlets
        Summary
     
        Chapter  4.   Converting Flat Files to XML
        The Budget
        The Model
        Input
        Determining the Output Format
        Building Hierarchical Structures from Flat Data
        Alternatives to Java
        Relational Databases
        Summary
     
        Chapter  5.   Reading XML
        InputStreams and Readers
        XML Parsers
        SAX
        DOM
        JAXP
        JDOM
        dom4j
        ElectricXML
        XMLPULL
        Summary
     
     
      Part  II.   SAX
        Chapter  6.   SAX
        What Is SAX?
        Parsing
        Callback Interfaces
        Receiving Documents
        Receiving Elements
        Handling Attributes
        Receiving Characters
        Receiving Processing Instructions
        Receiving Namespace Mappings
        "Ignorable White Space"
        Receiving Skipped Entities
        Receiving Locators
        What the ContentHandler Doesn't Tell You
        Summary
     
        Chapter  7.   The XMLReader Interface
        Building Parser Objects
        Input
        Exceptions and Errors
        Features and Properties
        DTDHandler
        Summary
     
        Chapter  8.   SAX Filters
        The Filter Architecture
        The XMLFilter Interface
        Content Filters
        The XMLFilterImpl Class
        Parsing Non-XML Documents
        Multihandler Adapters
        Summary
     
     
      Part  III.   DOM
        Chapter  9.   The Document Object Model
        The Evolution of DOM
        DOM Modules
        Application-Specific DOMs
        Trees
        DOM Parsers for Java
        Parsing Documents with a DOM Parser
        The Node Interface
        The NodeList Interface
        JAXP Serialization
        DOMException
        Choosing between SAX and DOM
        Summary
     
        Chapter  10.   Creating XML Documents with DOM
        DOMImplementation
        Locating a DOMImplementation
        The Document Interface as an Abstract Factory
        The Document Interface as a Node Type
        Normalization
        Summary
     
        Chapter  11.   The DOM Core
        The Element Interface
        The NamedNodeMap Interface
        The CharacterData Interface
        The Text Interface
        The CDATASection Interface
        The EntityReference Interface
        The Attr Interface
        The ProcessingInstruction Interface
        The Comment Interface
        The DocumentType Interface
        The Entity Interface
        The Notation Interface
        Summary
     
        Chapter  12.   The DOM Traversal Module
        NodeIterator
        NodeFilter
        TreeWalker
        Summary
     
        Chapter  13.   Output from DOM
        Xerces Serialization
        OutputFormat
        DOM Level 3
        Summary
     
     
      Part  IV.   JDOM
        Chapter  14.   JDOM
        What Is JDOM?
        Creating XML Elements with JDOM
        Creating XML Documents with JDOM
        Writing XML Documents with JDOM
        Document Type Declarations
        Namespaces
        Reading XML Documents with JDOM
        Navigating JDOM Trees
        Talking to DOM Programs
        Talking to SAX Programs
        Java Integration
        What JDOM Doesn't Do
        Summary
     
        Chapter  15.   The JDOM Model
        The Document Class
        The Element Class
        The Attribute Class
        The Text Class
        The CDATA Class
        The ProcessingInstruction Class
        The Comment Class
        Namespaces
        The DocType Class
        The EntityRef Class
        Summary
     
     
      Part  V.   XPath/XSLT
        Chapter  16.   XPath
        Queries
        The XPath Data Model
        Location Paths
        Expressions
        XPath Engines
        DOM Level 3 XPath
        Jaxen
        Summary
     
        Chapter  17.   XSLT
        XSL Transformations
        TrAX
        Extending XSLT with Java
        Summary
     
     
      Part  VI.   Appendixes
        Appendix  A.   XML API Quick Reference
        SAX
        DOM
        JAXP
        TrAX
        JDOM
        XMLPULL
     
        Appendix  B.   SOAP 1.1 Schemas
        The SOAP 1.1 Envelope Schema
        The SOAP 1.1 Encoding Schema
        W3C Software Notice and License
     
        Appendix  C.   Recommended Reading
        Books
        Specifications