Synopses & Reviews
XML has been the biggest buzzword on the Internet community for the past year. But how do you cut through all the hype and actually put it to work? Java revolutionized the programming world by providing a platform-independent programming language. XML takes the revolution a step further with a platform-independent language for interchanging data. Java and XML share many features that are ideal for building web-based enterprise applications, such as platform-independence, extensibility, reusability, and global language (Unicode) support, and both are based on industry standards. Together Java and XML allow enterprises to simplify and lower costs of information sharing and data exchange. Java and XML shows how to put the two together, building real-world applications in which both the code and the data are truly portable.This book covers:
- The basics of XML
- Using standard Java APIs to parse XML
- Designing new document types using DTDs and Schemas
- Writing programs that generate XML data
- Transforming XML into different forms using XSL transformations (XSL/T)
- Using a web publishing framework like Apache-Cocoon
This is the first book to cover the most recent versions of the DOM specification (DOM 2), the SAX API (SAX 2) and Sun's Java API for XML.
XML has been the biggest buzzword on the Internet community for the past year. But how do you cut through all the hype and actually put it to work? Java revolutionized the programming world by providing a platform-independent programming lan
Based on industry standards, Java and XML share many features that are ideal for building Web-based enterprise applications, such as platform-independence, extensibility, reusability, and global language (Unicode) support. Java and XML shows readers how to put the two together, building real-world applications in which both the code and the data are truly portable -- no matter what operating system is being used.
About the Author
Brett McLaughlin is a bestselling and award-winning non-fiction author. His books on computer programming, home theater, and analysis and design have sold in excess of 100,000 copies. He has been writing, editing, and producing technical books for nearly a decade, and is as comfortable in front of a word processor as he is behind a guitar, chasing his two sons and his daughter around the house, or laughing at reruns of Arrested Development with his wife.
Brett spends most of his time these days on cognitive theory, codifying and expanding on the learning principles that shaped the Head First series into a bestselling phenomenon. He's curious about how humans best learn, why Star Wars was so formulaic and still so successful, and is adamant that a good video game is the most effective learning paradigm we have.
Table of Contents
Preface; Organization; Who Should Read This Book?; Software and Versions; Conventions Used in This Book; Comments and Questions; Acknowledgments; Chapter 1: Introduction; 1.1 What Is It?; 1.2 How Do I Use It?; 1.3 Why Should I Use It?; 1.4 What's Next?; Chapter 2: Creating XML; 2.1 An XML Document; 2.2 The Header; 2.3 The Content; 2.4 What's Next?; Chapter 3: Parsing XML; 3.1 Getting Prepared; 3.2 SAX Readers; 3.3 Content Handlers; 3.4 Error Handlers; 3.5 A Better Way to Load a Parser; 3.6 "Gotcha!"; 3.7 What's Next?; Chapter 4: Constraining XML; 4.1 Why Constrain XML Data?; 4.2 Document Type Definitions; 4.3 XML Schema; 4.4 What's Next?; Chapter 5: Validating XML; 5.1 Configuring the Parser; 5.2 Output of XML Validation; 5.3 The DTDHandler Interface; 5.4 "Gotcha!"; 5.5 What's Next?; Chapter 6: Transforming XML; 6.1 The Purpose; 6.2 The Components; 6.3 The Syntax; 6.4 What's Next?; Chapter 7: Traversing XML; 7.1 Getting the Output; 7.2 Getting the Input; 7.3 The Document Object Model (DOM); 7.4 "Gotcha!"; 7.5 What's Next?; Chapter 8: JDOM; 8.1 Parsers and the Java API for XML Parsing; 8.2 JDOM: Another API?; 8.3 Getting a Document; 8.4 Using a Document; 8.5 Outputting a Document; 8.6 What's Next?; Chapter 9: Web Publishing Frameworks; 9.1 Selecting a Framework; 9.2 Installation; 9.3 Using a Publishing Framework; 9.4 XSP; 9.5 Cocoon 2.0 and Beyond; 9.6 What's Next?; Chapter 10: XML-RPC; 10.1 RPC Versus RMI; 10.2 Saying Hello; 10.3 Putting the Load on the Server; 10.4 The Real World; 10.5 What's Next?; Chapter 11: XML for Configurations; 11.1 EJB Deployment Descriptors; 11.2 Creating an XML Configuration File; 11.3 Reading an XML Configuration File; 11.4 The Real World; 11.5 What's Next?; Chapter 12: Creating XML with Java; 12.1 Loading the Data; 12.2 Modifying the Data; 12.3 XML from Scratch; 12.4 The Real World; 12.5 What's Next?; Chapter 13: Business-to-Business; 13.1 The Foobar Public Library; 13.2 mytechbooks.com; 13.3 Push Versus Pull; 13.4 The Real World; 13.5 What's Next?; Chapter 14: XML Schema; 14.1 To DTD or Not To DTD; 14.2 Java Parallels; 14.3 What's Next?; API Reference; SAX 2.0; DOM Level 2; JAXP 1.0; JDOM 1.0; SAX 2.0 Features and Properties; Core Features; Core Properties; Colophon;