- 论坛徽章:
- 0
|
关于Java中XML包的关系
呵呵,我给你的第一个链接里有各个包的用途:
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPIntro.html
An Overview of the Packages
The SAX and DOM APIs are defined by XML-DEV group and by the W3C, respectively. The libraries that define those APIs are:
javax.xml.parsers
The JAXP APIs, which provide a common interface for different vendors' SAX and DOM parsers.
org.w3c.dom
Defines the Document class (a DOM), as well as classes for all of the components of a DOM.
org.xml.sax
Defines the basic SAX APIs.
javax.xml.transform
Defines the XSLT APIs that let you transform XML into other forms.
java 提供了 sax 和 dom 的实现的接口,也提供了参考实现:JavaTM APIs for XML Processing:又称为 JAXP 1.1
apache 的 xerces 也是一个 xml parser,有自己的 xml 的实现
但遵守统一的 xml 接口 |
|