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 by providing 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, global language (Unicode) support, and both are based on industry standards. Together Java and XML allow enterprises to simplify and lower cost of information sharing and data exchange. Java and XML shows you 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) * XML-RPC * Using a web publishing framework like Apache-Cocoon * XML as a configuration languageThis 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.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Java & XML (2nd Edition) — Reading Guide
## 【One-Line Pitch】
A practical, code-first handbook for Java developers who need to master XML parsing, transformation, and web services — covering everything from SAX and DOM basics to SOAP, WSDL, and data binding. If you write Java for enterprise systems and want to make your data as portable as your code, this is your field manual.
## 【Book Arc】
- **Opening (~0%–4%)**: The book opens with the "why" — XML's portability, interoperability, and platform independence complement Java perfectly. The author sets expectations: this is not a beginner's XML tutorial but a rapid, technical deep-dive for Java programmers who want to put XML to work immediately.
- **Early (~4%–20%)**: Core XML fundamentals are compressed into one chapter (syntax, constraints, transformations), then the book pivots to the first major API: SAX. You learn SAX Readers, Content Handlers, Error Handlers, and common pitfalls — the event-driven parsing model that remains essential for large documents.
- **Early–Middle (~20%–32%)**: The DOM (Document Object Model) is covered in depth, including DOM Level 2 modules (Traversal, Range, Events) and a preview of Level 3. Then JDOM is introduced as a more Java-friendly alternative, followed by JAXP (Java API for XML Processing) for pluggable parsing and transformation.
- **Middle (~32%–48%)**: The book shifts to higher-level applications: web publishing frameworks (Apache Cocoon), XML-RPC for remote procedure calls, and SOAP for more robust web services. UDDI and WSDL are covered as the discovery and description layers of the web services stack.
- **Late (~48%–56%+)**: Content syndication (RSS), data binding frameworks (Castor, Zeus, JAXB), and a forward-looking chapter on XLink, XPointer, and XML Schema Bindings round out the book. Appendices provide API references for SAX 2.0, DOM Level 2, JAXP 1.1, and JDOM.
## 【Key Takeaways】
- **XML's core value is portability and interoperability** (Early): XML is a platform-independent language for data interchange, just as Java is for code. Together they enable truly portable enterprise applications where both code and data can move freely across systems.
- **SAX is the right tool for large, streaming documents** (Early): The event-driven model — with Content Handlers and Error Handlers — lets you process XML without loading the whole tree into memory. Watch for the "Gotcha!" sections that highlight common mistakes.
- **DOM gives you a full in-memory tree but costs memory** (Early): DOM Level 2 is the standard for reading and writing XML trees, but it's heavyweight. The book covers DOM modules like Traversal and Range, and previews Level 3 features.
- **JDOM bridges the gap between SAX and DOM** (Early–Middle): JDOM is a Java-specific API that feels more natural to Java developers than the W3C DOM. It supports reading, writing, and XPath queries, and integrates with JAXP.
- **JAXP provides a pluggable abstraction layer** (Middle): JAXP 1.0 and 1.1 let you swap parsers and transformers without changing your code. It's the API-or-abstraction question — JAXP is the abstraction that keeps your code portable across implementations.
- **Web publishing frameworks like Cocoon separate content from presentation** (Middle): Cocoon uses XML and XSL/T to serve dynamic content, letting you manage data and styling independently. XSP (eXtensible Server Pages) is covered as a way to generate XML dynamically.
- **XML-RPC and SOAP are two generations of remote procedure calls** (Middle): XML-RPC is simpler and lighter; SOAP is more robust and extensible. Both are covered with client and server examples, and the book explains when each is appropriate.
- **Data binding frameworks eliminate manual XML parsing** (Late): Castor, Zeus, and JAXB let you map XML directly to Java objects, making XML handling "a piece of cake." This is the highest-level API in the XML stack.
## 【Reading Tips】
- **Skim Chapter 1 if you already know XML basics** — the author deliberately condenses XML fundamentals into one chapter and moves fast. If you're new to XML, read it carefully; if not, jump to Chapter 2.
- **Deep-read the SAX and DOM chapters (Chapters 3–6)** — these are the foundation for everything else. Pay special attention to the "Gotcha!" sections, which highlight real-world mistakes that will save you debugging time.
- **Treat Chapters 11–13 (XML-RPC, SOAP, Web Services) as a progression** — read them in order to understand how RPC evolved into full web services with UDDI and WSDL. The examples build on each other.
- **Use the appendices as a reference, not reading material** — Appendix A (API Reference) and Appendix B (SAX 2.0 Features and Properties) are meant to be consulted while coding, not read cover-to-cover.
- **Be prepared to flip back and forth** — the author explicitly says material is not repeated. Later chapters assume you remember earlier concepts, so keep bookmarks or notes handy.
## 【Coverage Limits】
This guide covers the book's structure, key APIs, and practical applications based on the table of contents and chapter summaries. The excerpts do not include actual code examples or detailed API usage, so specific implementation patterns are not covered here.
##
Page 3
Preface ..................................................... Organization ................................................. Who Should Read This Book? ........
on .................................................... 423 Java & XML, 2nd Edition 1 Preface When I wrote the preface to the first edition of Java & XML jus...
larly as it relates to distributed systems and web services. Chapter 13 Continuing the discussions of SOAP and web services, this chapter details two importa...
h Bigelow are simply the best at what they do. Thanks, guys! To my parents, Larry and Judy McLaughlin, thanks again. I love you both for putting up with your...
ically. However, HTML is aimed specifically at presentation. You couldn't use HTML to represent a furniture manifest, or a billing invoice. That's because th...
uire none; but all belong in discussions about Java and XML. I've picked out the most popular and useful to discuss here. First, I'll cover web publishing fr...
out Xerces if you don't already have a parser selected. 1.3.3 APIs Once you've gotten the parser part of the equation taken care of, you'll need the various...
ou can read in its entirety at http://www.w3.org/TR/REC-xml. Example 2-1 shows a simple XML document that conforms to this specification. It's a portion of t...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Java XML (Brett McLaughlin) (Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Java XML (Brett McLaughlin) (Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment