This text shows how to use the APIs, tools, and tricks of XML to build real-world applications, with the end result that both the data and the code are portable. In its second edition it has added chapters on Advanced SAX and Advanced DOM, chapters on SOAP and data binding and examples throughout. A concise chapter on XML basics introduces concepts and the rest of the book focuses on using XML from 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 peer-to-peer movement, messaging, or Web services - should find the text useful.
This text 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 DOM HTML module; 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; and building information channels with RSS and dynamic content with XSP. It 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