JAXP Bundles

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.

Bundle Information

Bundles JAR Files

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.

Export

Package Description
javax.xml.parsers Provides API for processing XML documents. The supported pluggable parsers are SAX (Simple API for XML) and DOM (Document Object Model).
javax.xml.transform Holds the generic APIs for processing transformation instructions, and performing a transformation from source to result.

Note: This package is exported only by JAXP 1.2 API bundle.

javax.xml.namespace Contains classes and interfaces for processing XML namespaces.
org.w3c.dom Contains the Java binding API for Document Object Model (DOM) Core specification developed by W3C. The latest version is DOM Level 3 Core Specification. The package is also available in the JAXP part of Sun Web Services Developer Pack. Since JDK 1.4 it is a part of the official JDK release, available in the API Documentation and also as a Common DOM API part of the Java Plug-in technology.
org.w3c.dom.events Contains interfaces for handling events from a DOM. The latest version of the specification is in DOM Level 3. Also available in the Common DOM API.
org.w3c.dom.html Contains the DOM interfaces for HTML documents. Part of the DOM Level 1 specification. Available also in the Common DOM API.
org.w3c.dom.ranges Allows manipulating a range of content in a document. A part of the Traversal and Range DOM Level 2 Specification.
org.w3c.dom.traversal Contains interfaces for traversing a document's content. A part of the Traversal and Range DOM Level 2 Specification.
org.xml.sax Holds the Simple API for XML Parsing (SAX) created by the XML development group for XML data parsing and processing by means of events. The interface is also available in the JAXP part of Sun Web Services Developer Pack. Since JDK 1.4 it is a part of the official JDK release, available in the API Documentation
org.xml.sax.ext Contains interfaces to SAX2 facilities.
org.xml.sax.helpers Contains simple helper classes which can help programmers get started using the SAX APIs.

Overview

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.

References


OSGi Bundles