This second edition of Java & XML adds chapters on Advanced SAX and Advanced DOM, new chapters on SOAP and data binding, and new examples throughout. A concise chapter on XML basics introduces concepts, and the rest of the book focuses on using XML from your Java applications. Java developers who need to work with XML, or think that they will in the future--as well as developers involved in the new peer-to-peer movement, messaging, or web services--will find the new Java & XML a constant companion.
This book covers:
- The basics of XML, including DTDs, namespaces, XML Schema,
XPath, and XSL
- The SAX API, including all handlers, the SAX 2 extensions,
filters, and writers
- The DOM API, including DOM Level 2, Level 3, and the Traversal,
Range, CSS, Events, and HTML modules.
- The JDOM API, including the core, a look at XPath support, and
JDOM as a JSR
- Using web publishing frameworks like Apache Cocoon
- Developing applications with XML-RPC
- Using SOAP and UDDI for web services
- Data Binding, using both DTDs and XML Schema for constraints
- Building business-to-business applications with XML
- Building information channels with RSS and dynamic content with
XSP
Includes a quick reference on SAX 2.0, DOM Level 2, and JDOM.
Table of Contents
1. Introduction
XML Matters
What's Important?
The Essentials
What's Next?2. Nuts and Bolts
The Basics
Constraints
Transformations
And More-
What's Next?3. SAX
Getting Prepared
SAX Readers
Content Handlers
Error Handlers
Gotcha!
What's Next?4. Advanced SAX
Properties and Features
More Handlers
Filters and Writers
Even More Handlers
Gotcha!
What's Next?5. DOM
The Document Object Model
Serialization
Mutability
Gotcha!
What's Next?6. Advanced DOM
Changes
Namespaces
DOM Level 2 Modules
DOM Level 3
Gotcha!
What's Next?7. JDOM
The Basics
PropsToXML
XMLProperties
Is JDOM a Standard?
Gotcha!
What's Next?8. Advanced JDOM
Helpful JDOM Internals
JDOM and Factories
Wrappers and Decorators
Gotcha!
What's Next?9. JAXP
API or Abstraction
JAXP 1.0
JAXP 1.1
Gotcha!
What's Next?10. Web Publishing Frameworks
Selecting a Framework
Installation
Using a Publishing Framework
XSP
Cocoon 2.0 and Beyond
What's Next?11. XML-RPC
RPC Versus RMI
Saying Hello
Putting the Load on the Server
The Real World
What's Next?12. SOAP
Starting Out
Setting Up
Getting Dirty
Going Further
What's Next?13. Web Services
Web Services
UDDI
WSDL
Putting It All Together
What's Next?14. Content Syndication
The Foobar Public Library
mytechbooks.com
Push Versus Pull
What's Next?15. Data Binding
First Principles
Castor
Zeus
JAXB
What's Next?16. Looking Forward
XLink
XPointer
XML Schema Bindings
And the Rest. . .
What's Next?A. API Reference
B. SAX 2.0 Features and Properties
Index