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™ 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™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
Contents
I- XML.
- XML for Data.
- XML Protocols: XML-RPC and SOAP.
- Writing XML with Java.
- Converting Flat Files to XML.
- Reading XML.
II-
SAX.
- The XMLReader Interface.
- SAX Filters.
III- DOM.
- The Document Object Model.
- Creating XML Documents with DOM.
- The Document Object Model Core.
- The DOM Traversal Module.
- Output from DOM.
IV- JDOM.
V- XPath/ XSLT.
VI- Appendixes.
- Appendix A. XML API Quick Reference.
- Appendix B. SOAP 1.1 Schemas.