Xml and Java : Developing Web Applications (2 PAP/CDR)

Xml and Java : Developing Web Applications (2 PAP/CDR)

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 661 p.
  • 言語 ENG
  • 商品コード 9780201770049
  • DDC分類 005.72

Full Description


The first edition of XML and Java earned rave reviews for its exceptionally practical, thorough, and example-rich coverage of XML development with Java. Now, the authors -- all leading-edge XML experts from IBM -- have updated the book to reflect the latest XML tools, technologies, and best practices. From start to finish, they provide expert insight and "jumpstart" examples that are immediately applicable to real-world problems. Coverage includes: parsing and generating XML documents; working with DOM/DOM2 and SAX/SAX2; schemas and validation; document manipulation with XPath and XSLT; and utilizing advanced XML parsers. The authors introduce XML programming with servlets and JSP; XML database integration; XML messaging and Web services; data binding and security solutions; and more.

Contents

Foreword. Preface. 1. Web Applications, XML, and Java. Introduction. Structure of This Book. Web Applications. From Static Contents to Dynamic Contents. From B2C to B2B-From Web for Eyeballs to Web for Programs. Interoperability Is Everything. From Distributed Applications to Decentralized Applications. The World of Web Services-More Dynamic Integration. Other Application Areas of XML. Metadata. Configuration Files. Rich Documents. Some XML Basics. Standardization Process. Validity and Well-Formedness. Namespaces. Summary. 2. Parsing XML Documents. Introduction. XML Processors. Working with Xerces. Basics of Parsing Documents. Parsing Well-Formed Documents. Parsing Valid Documents. Design Point: Well-Formed versus Valid. More about Parsing XML Documents. Parsing XML Documents with Namespaces. Parsing XML Documents with XML Schema. Design Point: The DTD versus XML Schema. Parsing XML Documents with JAXP. Design Point: JAXP and XercesNative API. Programming Interfaces for Document Structure. DOM: Tree-Based API. SAX: Event-Driven API. Design Point: DOM versus SAX. Summary. 3. Generating and Serializing XML Documents. Introduction. Creating a DOM Tree from Scratch. Creating a Document Object. Creating and Appending Child Nodes. Handling Namespaces. Validating a Generated DOM Tree. Serializing a DOM Tree. Using the XMLSerializer Package. Discussions about Serialization. Handling Whitespace. Internationalization. XML Declarations. Charset Parameter. Summary. 4. Working with DOM. Introduction. DOM Basics. Accessing and Updating the Status of a Node. Accessing Structural Information. Inserting, Detaching, and Replacing a Child Node. DOM Tree and Attributes. Advanced DOM. How to Simplify Your Code by Removing Entity References. Tree Traversal. DOM Collection Is Live. Moving Nodes over Documents. Namespaces in DOM. Summary. 5. Working with SAX. Introduction. Basic Tips for Using SAX. ContentHandler. Using and Writing SAX Filters. New Features of SAX2. DOM versus SAX. Performance: Memory and Speed. Conversion from DOM to SAX and Vice Versa. Summary. 6. Parser Tricks. Introduction. General Tricks. Namespace Validation with DTDs. Entity Resolution. Working with Sockets. Basic Xerces Tricks. Extended Parser Options. Custom DOM Implementation. Advanced Xerces Tricks. The Xerces Native Interface. Components and the Component Manager. Parser Configurations. Building Parser Configurations from Xerces2 Components. Summary. 7. XPath and XSLT. XPath. What Is XPath? Syntax and Semantics of XPath. XPath and Namespaces. XPath Programming in Java. XSLT. What Is XSLT? Syntax and Semantics of XSLT. XSLT Programming in Java. Pros and Cons of XSLT, XPath, DOM, and SAX. Execution Efficiency. Development Efficiency. Summary. 8. Bridging Application Data Structure and XML. Introduction. Mapping to Almost Isomorphic Tree Structures. Structure Adjustment by XSLT. Mapping to Tables. Mapping to Hash Tables. Mapping to Graph Structures. Summary. 9. Working with Schemas: Datatypes and Namespaces. Introduction. W3C XML Schema. Mimicking DTDs. Datatypes. Using Namespaces. Advanced Features. Further Information. RELAX NG. Mimicking DTDs. Using Datatypes and Facets of W3C XML Schema. Using Namespaces. Co-occurrence Constraints. Further Information. Summary. 10. XML Application Server. The Background of the XML Application Server. The Need for a Common Framework for Building Web Applications. What Is an XML Application Server? Servlet. Returning XML Documents from a Servlet. Receiving XML Documents. Considerations for State Management. JavaServer Pages. What Is JSP? An Informational JSP Returning XML Documents. The Combination of Servlet and JSP. Apache Cocoon. Having Well-Grounded Goals. Integrating and Multichanneling XML Documents Using Cocoon. Summary. 11. XML and Databases. Introduction. Storing and Searching for XML Documents. Mapping from an XML Document to Tables. Designing Relational Tables. Defining the Primary Keys in a Table. Designing a Table for MultiplyOccurring Elements. Datatype Mapping. Semantics of Data. Two Approaches. Mapping from Tables to an XML Document. Nested and Flat Representation. Element versus Attribute Representation. Program Examples. Mapping Method. XPath Method. A Servlet for Accessing a Database. Working with EJB. The Importance of EJB. A Simple EJB. Summary. 12. XML Messaging. Introduction. Distributed Computing and Interoperability. Overview of XML Messaging. New-Generation Distributed Programming. Simple Object Access Protocol. The Birth of SOAP. Travel Reservation Example. Basic Concepts of SOAP. To Use SOAP or Not? SOAP Engines. Prototyping a SOAP Engine. SOAP Engine Products. Java API for SOAP. Summary. 13. Web Services. Emergence of Web Services. Publishing, Finding, and Integration. What Are Web Services? Status of Web Services. Web Services Description. Overview of WSDL. WSDL as an Interface Definition Language. WSDL Tools. Programming with WSDL4J. JAX-RPC. Service Registration and Discovery. Overview of UDDI. Programming with UDDI4J. Registering WSDL with the UDDI Registry. Application to Dynamic e-Business. Application Scenario. Discovering Businesses on the Fly. Dynamic Binding. Enterprise Web Services. Summary. 14. Security. Introduction. IT System Security in General. Security Requirements on B2B Systems. Security of Communication. Access Control. SSL/TLS. Server Authentication. Client Authentication. Selecting a Public-Key Infrastructure. Configuring a Server and a Client for SSL/TLS. SSL/TLS Programming in Java. Firewall Considerations. Summary of Using SSL/TLS. XML Digital Signature. XML Canonicalization. XML Digital Signature Sample. Signing XML Documents with XML Security Suite for Java. Verifying XML Digital Signature with XML Security Suite for Java. Access Control in Java. Declarative Access Control and Programmatic Access Control. Declarative Access Control. Programmatic Access Control. Security Architecture of EJB. Security in Web Services. Using SSL/TLS and XML Digital Signature in SOAP. Access Control in SOAP Applications. Partial Encryption of XML. Security Service as Web Services. Summary. 15. Data Binding. Introduction. Generating Java Classes from a Schema. JAXB. Relaxer. Pros and Cons of Generating a Java Program from a Schema Generating an XML Document from Java Classes. Castor XML. Pros and Cons of Generating XML Documents from Java Classes. SOAP Encoding. Summary. 16. Principles of Schema Languages. Introduction. Schemas as Syntactic Constraints. Checking Unexpected Documents. What Happens If We Neglect Schemas? Desiderata for Schema Languages. Schemas as Data Models. Documents as Character Strings. Documents as Trees. Documents as Data Compliant with Schemas. Documents as Information for Web Applications. Desiderata for Schema Languages. Interworking with Other Software. Interworking with Programming Languages. Relational Databases. Desiderata for Schema Languages. General-Purpose Schema Languages. DTD. W3C XML Schema. RELAX NG. Schematron. Special-Purpose Schema Languages. RDF Schema. RELAX Namespace. Summary. Appendix A. Appendix B. Useful Links and Books. XML. General. Software. Java. Platform and SDK. Web Applications. Database. Messaging. Security. Web Services. General. Software. Standards. Books. Java. XML/SGML. Web Services. Other Topics. Appendix C. XML-Related Standardization Activities. XML Core. Namespace. XML Fragment Interchange. XML Inclusions. XML Infoset. XML Tools. XPath. XML Pointer, XML Base, and XML Linking. Extensible Stylesheet Language. Schema Languages. XML Schema. RELAX NG. Schematron. APIs. Document Object Model. Simple API for XML. XML Security. XML Signature. XML Encryption. Platform for Privacy Preferences Project. Web Services. XML Protocol (SOAP). Web Services Description Language. Universal Description, Discovery, and Integration. Java Specification Requests. Other Topics. Web Distributed Authoring and Versioning. Wireless Markup Language. XHTML. XML Query. Appendix D. JDBC Primer. Introduction. JDBC Package. Loading a JDBC Driver. Connecting to a Database. Submitting a Query. Using a Connection Pool. Index. 0201770040T05092002