More About this Title XML and Java are each enormously powerful on their own, but together, they enable truly revolutionary Internet applications. Now, a team of IBM XML experts introduce the essential aspects of XML/Java development, from a review of basic concepts to thorough coverage of advanced techniques. Learn Java-based solutions for implementing key XML features, including parsing, document generation, object tree manipulation, and document processing. This book is ideal for Web developers that have a working knowledge of Java and a basic understanding of XML, and now want to learn how to take advantage of the significant strengths of the combined technologies. Master the art of building Java programs based on XML's Document Object Model. Then, walk through real-world scenarios for managing metacontent, integrating back-end databases, automating business-to-business message exchange, leveraging JavaBeans components; and ensuring the security of Web-based Java/XML applications. Table of Contents Acknowledgments Overview of Web Applications, XML, and Java Introduction What Is a Web Application Some XML Basics Application Areas of XML Why Use XML in Web Applications Java's Role in Web Applications Summary Parsing XML Documents Introduction XML Processors Introduction to XML for Java Reading an XML Document Working with Character Encoding in XML Documents Printing an XML Document from a Parsed Structure Programming Interfaces for Document Structure Summary Constructing and Generating XML Documents Introduction Creating an Internal Structure from Scratch Building a Valid DOM Tree Generating an XML Document from a DOM Tree Summary Manipulating DOM Structures Introduction Tree Manipulation Using the DOM API LMX: Sample Nontrivial Application Rendering with LMX Summary Managing Documents and Working with Metacontent Introduction Servlet Basics A Simple Servlet Overview of the DocMan System Browsing, Listing, and Searching Documents Creating Metacontent Summary Interfacing Databases and XML Introduction JDBC Primer SQL Embedded in XML: SQLX Web Application with a Database Summary Exchanging Messages Securely on the Internet Introduction Transport and Message Formats PowerWarning Application Designing XML Messages Secure Message Exchange with SSL Hash and Digital Signatures of XML Documents Summary Developing Applications Using JavaBeans Introduction Reusing Software Software Components and JavaBeans Componentizing XML for Java as JavaBeans Travel Planning Application Evolution of Web Applications Summary Appendix A About the CD-ROM Appendix B Using Other XML Processors Downloadable XML Processors Using the XML Processor with the SAX API Using the XML Processor with the DOM API Appendix C Useful Links and Books Standards Links of General XML Interests Links to Product Home Pages Books Appendix D XML for Java API Reference Package com.ibm.xml.domutil Package com.ibm.xml.parser Package com.ibm.xml.parser.util Package org.w3c.dom Package org.xml.sax Package org.xml.sax.helpers Appendix E XML-Related Standardization Activities XPointer XLink Namespace XSL Document Object Model (DOM) Simple API for XML (SAX) Other XML-Related Specifications Appendix F DOMHASH Definition Text Nodes PI (Processing Instruction) Nodes Attribute (Attr) Nodes Element Nodes Proposed API