內容簡介
《Java與XML》(第三版)向您展示如何穿透圍繞著XML的宣傳迷霧,讓XML真正在您的工作中為您所用。它將教您如何使用XML的各種應用程式編程接口(API)、工具和技巧來構建實際的應用程式,為管理從配置檔案到網路站點在內的所有信息提供一條全新的途徑。
書中的主題如下:
*XML基礎,包括DTD、命名空間(namespace)、XML Schema和數據格式轉換
(Transformation)
*SAX應用程式編程接口,包括處理器接口、過濾器接口和寫出接口
*DOM應用程式編程接口,包括DOM第2層、第3層和DOM HTML模組
*JDOM應用程式編程接口,包括核心接口和XPath支持
*StAX應用程式編程接口,包括StAX的工廠方法(factory)、文檔生成和XMLPull
*使用JAXB進行數據綁定,使用新的JAXB 2.0 annotation
*使用RSS進行網路同步和podcasting
*表示層的XML套用,主要針對Ajax和Flash應用程式
無論您現在正在還是將來會進行Java程式的開發並且需要用到XML,或者您正在參與新的點對點技術、訊息技術以及Web service技術的相關套用或者開發,《Java與XML》(第三版)都是一本不可或缺的圖書。
目錄
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