Apache Crimson Parser

The Apache Crimson Parser bundle provides a XML parser developed by Apache Software Foundation, version 1.1.3, based on the Sun Project X Parser. It conforms to the OSGi XML Parser Service specification. The parser is modified to use the same sax and dom interfaces as xerces 1.4.4.

Bundle Information

Bundle JAR

The JAR file of the Apache Crimson Parser bundle is crimson.jar, and it is found in the bundles folder.

Import

Package Exporter Description
javax.xml.parsers JAXP 1.0 API Provides API for processing XML documents through pluggable parsers.
org.w3c.dom The DOM Core Specification. Defines the api for representing XML documents through DOM structures.
org.xml.sax Contains the Core API for XML processing according to the SAX Specification.
org.xml.sax.ext This package contains interfaces to SAX2 facilities.
org.xml.sax.helpers Contains simple helper classes.

Export

The Apache Crimson Parser bundle exports the following packages:

Package Description
org.apache.crimson.parser Wraps the XML parsing processors.
org.apache.crimson.parser.resources Wraps useful utilities for building XML-enabled applications.
org.apache.crimson.tree Hosts the utilities that support XML documents with tree structures.

Services

SAX Parser Factory

The javax.xml.parsers.SAXParserFactory class provides APIs for processing XML documents according to the SAX Specification.

Document Builder Factory

The javax.xml.parsers.DocumentBuilderFactory provides APIs for creating a DOM tree of a XML document according to the Document Object Model (DOM) Specifications.

References


OSGi Bundles