JAXP bundles are library bundles, providing APIs to other bundles, that want to make use of XML parsing techniques. The JAXP 1.0 API bundle envelops JAXP 1.0 API (the Java API for XML Processing developed by Sun Microsystems), while the JAXP 1.2 API bundle delivers JAXP 1.2 API and other interfaces for Java binding from the DOM specification by W3C. By using these bundles, developers may fully employ XML structures and use them in their applications.
The JAR files of the JAXP Bundles are jaxp10.jar (JAXP 1.0 API), and respectively jaxp12.jar (JAXP 1.2 API). Both JAR files are located in the bundles directory of the Framework package.
|
The Extensible Markup Language (XML) is a platform for arranging structured data using simple and editable text files and was developed by the World Wide Web Consortium (W3C). The format of XML includes delimiting data within tags whose names and attributes are application-specific. For details about XML, refer to the XML recommendations of W3C.
The W3C organization has developed the Document
Object Model (DOM) specification, which defines the programming interface
allowing programs and scripts to modify the content and structure of XML documents.
It represents the structure of a document as a tree. The specification defines
Java binding interfaces for DOM access through Java language. Each part of the
specification provides the Java API as an appendix. For example, here
are the interfaces to the DOM Core Specification, located in the org.w3c.dom
package.
Another specification for XML processing is the Simple API for XML (SAX) project. It provides the application access to the contents of the XML document by passing it a stream of parsing events. This approach is better for representation of larger documents.
Part of the Java binding DOM interfaces defined by W3C and the SAX interfaces are also available by Sun Microsystems. They are combined in a common extension called Java API for XML Processing (JAXP). Presently JAXP is a part of Sun Web Services Developer Pack and its combined API Documentation. It contains various Java utilities for XML processing and parsing. The JAXP API provides benefits in manipulating and forwarding of XML-based documents. Since JDK 1.4, these interfaces are a part of the official release and their API documentation is also available in the common J2SE API Specification. The DOM interfaces are also available as a part of the Common DOM API, provided by the Java Plug-in Component, which is shipped along with the JDK since version 1.4.