Java and XML, 3/e (Paperback)
暫譯: Java 與 XML, 第三版 (平裝本)

Brett McLaughlin, Justin Edelson

  • 出版商: O'Reilly
  • 出版日期: 2007-01-16
  • 定價: $1,650
  • 售價: 5.0$825
  • 語言: 英文
  • 頁數: 482
  • 裝訂: Paperback
  • ISBN: 059610149X
  • ISBN-13: 9780596101497
  • 相關分類: Java 程式語言XML
  • 相關翻譯: Java與XML(第3版) (簡中版)
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

相關主題

商品描述

Description

Java and XML, 3rd Edition, shows you how to cut through all the hype about XML and put it to work. It teaches you how to use the APIs, tools, and tricks of XML to build real-world applications. The result is a new approach to managing information that touches everything from configuration files to web sites.

After two chapters on XML basics, including XPath, XSL, DTDs, and XML Schema, the rest of the book focuses on using XML from your Java applications. This third edition of Java and XML covers all major Java XML processing libraries, including full coverage of the SAX, DOM, StAX, JDOM, and dom4j APIs as well as the latest version of the Java API for XML Processing (JAXP) and Java Architecture for XML Binding (JAXB). The chapters on web technology have been entirely rewritten to focus on the today's most relevant topics: syndicating content with RSS and creating Web 2.0 applications. You'll learn how to create, read, and modify RSS feeds for syndicated content and use XML to power the next generation of websites with Ajax and Adobe Flash.

Topics include:

  • The basics of XML, including DTDs, namespaces, XML Schema, XPath, and Transformations
  • The SAX API, including all handlers, filters, and writers
  • The DOM API, including DOM Level 2, Level 3, and the DOM HTML module
  • The JDOM API, including the core and a look at XPath support
  • The StAX API, including StAX factories, producing documents and XMLPull
  • Data Binding with JAXB, using the new JAXB 2.0 annotations
  • Web syndication and podcasting with RSS
  • XML on the Presentation Layer, paying attention to Ajax and Flash applications

If you are developing with Java and need to use XML, or think that you will be in the future; if you're involved in the new peer-to-peer movement, messaging, or web services; or if you're developing software for electronic commerce, Java and XML will be an indispensable companion.

 

Table of Contents

Preface

1. Introduction

     XML 1.0

     XML 1.1

     XML Transformations

     And More...

2. Constraints

     DTDs

     XML Schema

     RELAX NG

3. SAX

     Setting Up SAX

     Parsing with SAX

     Content Handlers

     Error Handlers

4. Advanced SAX

     Properties and Features

     Resolving Entities

     Notations and Unparsed Entities

     The DefaultHandler Class

     Extension Interfaces

     Filters and Writers

5. DOM

     The Document Object Model

     Serialization

     Modifying and Creating XML

     Namespaces

6. DOM Modules

     Checking for Module Support

     DOM Level 2 Modules

     DOM Level 3 Modules

7. JAXP

     More Than an API

     Parsing XML

     Processing XSL

     XPath

     XML Validation

8. Pull Parsing with StAX

     StAX Basics

     StAX Factories

     Parsing with StAX

     Document Output with StAX

     Factory Properties

     Common Issues with StAX

     XmlPull

9. JDOM

     The Basics

     PropsToXML

     XMLProperties

     More JDOM Classes

     JDOM and Factories

     Common Issues with JDOM

10. dom4j

     Overview

     Reading and Writing with dom4j

     Document Traversal

     Transformations

     Special-Purpose Factories

11. Data Binding with JAXB

     Data Binding Basics

     Introducing JAXB

     Using JAXB

     Other Binding Frameworks

12. Content Syndication with RSS

     What Is RSS?

     Creating an RSS Feed

     Reading an RSS Feed

     Modules with ROME

13. XML As Presentation

     XML and the Model-View-Controller Pattern

     Transforming to HTML with JSP

     Using XSLT

     Ajax

     Flash

14. Looking Forward

Appendix:. SAX Features and Properties

Index

商品描述(中文翻譯)

**描述**

《Java 與 XML(第三版)》教你如何突破有關 XML 的所有炒作,並將其付諸實踐。它教你如何使用 XML 的 API、工具和技巧來構建實際應用程式。結果是一種新的信息管理方法,涉及從配置文件到網站的各個方面。

在兩章有關 XML 基礎知識的內容後,包括 XPath、XSL、DTD 和 XML Schema,本書的其餘部分專注於如何在 Java 應用程式中使用 XML。《Java 與 XML》第三版涵蓋了所有主要的 Java XML 處理庫,包括對 SAX、DOM、StAX、JDOM 和 dom4j API 的全面介紹,以及最新版本的 Java API for XML Processing (JAXP) 和 Java Architecture for XML Binding (JAXB)。有關網絡技術的章節已完全重寫,專注於當今最相關的主題:使用 RSS 進行內容聚合和創建 Web 2.0 應用程式。你將學會如何創建、閱讀和修改 RSS 源以進行內容聚合,並使用 XML 為下一代網站提供支持,結合 Ajax 和 Adobe Flash。

主題包括:
- XML 的基礎知識,包括 DTD、命名空間、XML Schema、XPath 和轉換
- SAX API,包括所有處理器、過濾器和寫入器
- DOM API,包括 DOM Level 2、Level 3 和 DOM HTML 模組
- JDOM API,包括核心和 XPath 支持
- StAX API,包括 StAX 工廠、生成文檔和 XMLPull
- 使用 JAXB 進行數據綁定,使用新的 JAXB 2.0 註解
- 使用 RSS 進行網絡聚合和播客
- 在展示層上的 XML,關注 Ajax 和 Flash 應用程式

如果你正在使用 Java 開發並需要使用 XML,或認為將來會需要;如果你參與新的點對點運動、消息傳遞或網絡服務;或者如果你正在為電子商務開發軟體,《Java 與 XML》將是你不可或缺的夥伴。

**目錄**

**前言**

**1. 介紹**
- XML 1.0
- XML 1.1
- XML 轉換
- 以及更多...

**2. 約束**
- DTD
- XML Schema
- RELAX NG

**3. SAX**
- 設置 SAX
- 使用 SAX 解析
- 內容處理器
- 錯誤處理器

**4. 高級 SAX**
- 屬性和特徵
- 解決實體
- 記錄和未解析實體
- DefaultHandler 類
- 擴展介面
- 過濾器和寫入器

**5. DOM**
- 文檔物件模型
- 序列化
- 修改和創建 XML
- 命名空間

**6. DOM 模組**
- 檢查模組支持
- DOM Level 2 模組
- DOM Level 3 模組

**7. JAXP**
- 不僅僅是 API
- 解析 XML
- 處理 XSL
- XPath
- XML 驗證

**8. 使用 StAX 進行拉取解析**
- StAX 基礎
- StAX 工廠
- 使用 StAX 解析
- 使用 StAX 輸出文檔
- 工廠屬性
- StAX 的常見問題
- XmlPull

**9. JDOM**
- 基礎
- PropsToXML
- XMLProperties
- 更多 JDOM 類
- JDOM 和工廠
- JDOM 的常見問題

**10. dom4j**
- 概述
- 使用 dom4j 讀取和寫入
- 文檔遍歷
- 轉換
- 特殊用途工廠

**11. 使用 JAXB 進行數據綁定**
- 數據綁定基礎
- 介紹 JAXB
- 使用 JAXB
- 其他綁定框架

**12. 使用 RSS 進行內容聚合**
- RSS 是什麼?
- 創建 RSS 源
- 閱讀 RSS 源
- 使用 ROME 的模組

**13. XML 作為展示**
- XML 與模型-視圖-控制器模式
- 使用 JSP 轉換為 HTML
- 使用 XSLT
- Ajax
- Flash

**14. 展望未來**

**附錄:SAX 特徵和屬性**

**索引**