Java And Xml, e-book, JAVA

[ Pobierz całość w formacie PDF ]
Team[oR] 2001
[x] java
Java and XML
Java and XML
Copyright © 2000 O'Reilly & Associates, Inc. All rights reserved.
Printed in the United States of America.
Published by O'Reilly & Associates, Inc., 101 Morris Street, Sebastopol, CA 95472.
The Java™ Series is a trademark of O'Reilly & Associates, Inc. Java™ and all Java-based
trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc., in the
United States and other countries. O'Reilly & Associates, Inc. is independent of Sun Microsystems.
The O'Reilly logo is a registered trademark of O'Reilly & Associates, Inc. Many of the designations
used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where
those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark
claim, the designations have been printed in caps or initial caps. The association between the image
of a Tupperware SHAPE-O® and Java™ and XML is a trademark of O'Reilly & Associates, Inc.
SHAPE-O® is a registered trademark of Dart Industries Inc. (Tupperware Worldwide) and is used
with permission.
While every precaution has been taken in the preparation of this book, the publisher assumes no
responsibility for errors or omissions, or for damages resulting from the use of the information
contained herein.
© 2001, O'Reilly & Associates, Inc.
page 2
...............................................................................
Organization
5
...................................................................
Who Should Read This Book?
6
........................................
8
....................................................
Conventions Used in This Book
8
......................................
9
Comments and Questions
..............................................
9
Acknowledgments
...........................................................
10
Chapter 1. Introduction
....................................................
11
.......................................................................
How Do I Use It?
12
.............................................................
Why Should I Use It?
19
......................................................
21
What’s Next?
..................................................................
33
Chapter 2. Creating XML
..................................................
33
An XML Document
..........................................................
34
An XML Document
..........................................................
35
....................................................................
What’s Next?
36
..................................................................
43
Chapter 3. Parsing XML
....................................................
43
Getting Prepared
............................................................
43
..................................................................
Content Handlers
45
............................................................
49
Error Handlers
................................................................
64
Error Handlers
................................................................
70
.........................................................................
What’s Next?
76
..................................................................
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
....................................................
Output of XML Validation
106
................................................
The DTDHandler Interface
110
..............................................
114
.........................................................................
What’s Next?
116
..................................................................
118
Chapter 6. Transforming XML
..........................................
118
The Purpose
...................................................................
119
Preface
Software and Versions
What Is It?
The Content
SAX Readers
"Gotcha!"
Configuring the Parser
"Gotcha!"
The Components
............................................................
120
......................................................................
What’s Next?
123
..................................................................
140
Chapter 7. Traversing XML
..............................................
140
Getting the Output
..........................................................
141
.............................................................
The Document Object Model (DOM)
143
..............................
144
.........................................................................
What’s Next?
158
..................................................................
160
...............................................................
Parsers and the Java API for XML Parsing
160
....................
161
JDOM: Another API?
......................................................
164
............................................................
Getting a Document
164
........................................................
166
..........................................................
Outputting a Document
169
...................................................
177
What’s Next?
..................................................................
184
Chapter 9. Web Publishing Frameworks
........................
184
Selecting a Framework
...................................................
185
.......................................................................
Using a Publishing Framework
187
.......................................
193
.................................................................................
Cocoon 2.0 and Beyond
204
.................................................
217
What’s Next?
..................................................................
219
Chapter 10. XML-RPC
.......................................................
219
RPC Versus RMI
............................................................
220
....................................................................
Putting the Load on the Server
222
.......................................
232
The Real World
...............................................................
246
What’s Next?
..................................................................
249
Chapter 11. XML for Configurations
...............................
249
..........................................
Creating an XML Configuration File
250
................................
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
The Syntax
Getting the Input
"Gotcha!"
Chapter 8. JDOM
What’s in a Name?
Using a Document
Installation
XSP
Saying Hello
EJB Deployment Descriptors
Modifying the Data
..........................................................
282
XML from Scratch
...........................................................
287
The Real World
...............................................................
288
What’s Next?
..................................................................
295
Chapter 13. Business-to-Business
..................................
295
The Foobar Public Library
..............................................
296
mytechbooks.com
...........................................................
304
Push Versus Pull
............................................................
311
The Real World
...............................................................
322
What’s Next?
..................................................................
322
Chapter 14. XML Schema
.................................................
323
To DTD or Not To DTD
...................................................
323
Java Parallels
.................................................................
325
What’s Next?
..................................................................
332
Appendix A. API Reference
..............................................
332
....................................................................
A.2 DOM Level 2
332
............................................................
343
A.3 JAXP 1.0
..................................................................
349
A.4 JDOM 1.0
.................................................................
351
Appendix B. SAX 2.0 Features and Properties
..............
358
..........................................................
B.2 Core Properties
358
........................................................
360
A.1 SAX 2.0
B.1 Core Features
[ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • red-hacjenda.opx.pl