Java and XML
Java and XML Preface . 5 Organization . 6 Who Should Read This Book? 8 Software and Versions 8 Conventions Used in This Book 9 Comments and Questions 9 Acknowledgments . 10 Chapter 1. Introduction 11 What Is It? . 12 How Do I Use It? . 19 Why Should I Use It? 21 What’s Next? 33 Chapter 2. Creating XML 33 An XML Document 34 An XML Document 35 The Content 36 What’s Next? 43 Chapter 3. Parsing XML 43 Getting Prepared 43 SAX Readers 45 Content Handlers 49 Error Handlers 64 Error Handlers 70 "Gotcha!" . 76 What’s Next? 79 Chapter 4. Constraining XML . 79 Why Constrain XML Data? . 79 Document Type Definitions . 82 XML Schema 94 What’s Next? 106 Chapter 5. Validating XML 106 Configuring the Parser 106 Output of XML Validation 110 The DTDHandler Interface 114 "Gotcha!" . 116 What’s Next? 118 Chapter 6. Transforming XML 118 The Purpose . 119 The Components 120 The Syntax 123 What’s Next? 140 Chapter 7. Traversing XML 140 Getting the Output 141 Getting the Input . 143 The Document Object Model (DOM) 144 "Gotcha!" . 158 What’s Next? 160 Chapter 8. JDOM . 160 Parsers and the Java API for XML Parsing 161 JDOM: Another API? 164 What’s in a Name? 164 Getting a Document 166 Using a Document 169 Outputting a Document . 177 What’s Next? 184 Chapter 9. Web Publishing Frameworks 184 Selecting a Framework . 185 Installation . 187 Using a Publishing Framework . 193 XSP . 204 Cocoon 2.0 and Beyond . 217 What’s Next? 219 Chapter 10. XML-RPC . 219 RPC Versus RMI 220 Saying Hello 222 Putting the Load on the Server . 232 The Real World . 246 What’s Next? 249 Chapter 11. XML for Configurations . 249 EJB Deployment Descriptors 250 Creating an XML Configuration File 252 Reading an XML Configuration File 257 The Real World . 265 What’s Next? 273 Chapter 12. Creating XML with Java . 273 Loading the Data 273
Các file đính kèm theo tài liệu này:
- Java and XML.pdf