本书向您展示如何穿透围绕着XML的宣传迷雾,让XML真正在您的工作中为您所用。它将教您如何使用XML的各种应用程序编程接口(API)、工具和技巧来构建实际的应用程序,为管理从配置文件到网络站点在内的所有信息提供一条全新的途径。
本书的内容涵盖了所有主要的JavaXML处理库程序,全面讲解了SAX、DOM、StAX、JDOM以及dom4j的应用程序编程接口,同时还囊括了最新版本的用于XML处理的Java应用程序编程接口(JAXP)和用于XML绑定的Java架构(JAXB)相关知识。第三版还彻底重写了有关网络技术的章节,与原先的内容相比,这一部分针对目前引起广泛关注的技术热点进行介绍,例如使用RSS进行内容同步和开发Web2.0的应用程序。您将学习到如何为同步的内容创建、读取或者修改RSSfeeds,以及如何运用XML、Ajax和AdobeFlash来为下一代的网络站点注入活力。
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. D0M
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