Hitachi

uCosminexus Application Server XML Processor User Guide


2.1 About JAXP

JAXP (Java API for XML Processing) is a standard XML API for the Java language defined in JSR 206 of the Java Community Process.

The following table describes the JAXP functions that Cosminexus XML Processor supports.

Table 2‒1:  JAXP functions that Cosminexus XML Processor supports

Function

Overview

DOM

Analyze an XML document to generate a DOM tree. Also, manipulates the generated DOM tree.

SAX

Analyze an XML document to generate an SAX event. Also, handles the generated event.

StAX

Parses an XML document to generate a StAX event and also processes the generated event. Does not require a handler, and therefore can perform procedural processing of XML documents.

XSLT

Receives an XML document as input, transforms the document based on a stylesheet, and then outputs another XML document, an HTML document, or text.

XPath

Evaluates an XPath expression.

Validation

Validates an XML document based on the schema document.

Datatype

Processes the date and time format data defined in W3C XML Schema 1.0.

JAXP includes APIs that can generate DOM parsers, SAX parsers, StAX parsers, XSLT transformers, XPath objects, Validation objects, and Datatype objects. These APIs do not depend on the JAXP implementation. This frees you from needing to be aware of the implementation of the XML processor used when you create a program that handles and operates XML documents. Therefore, Cosminexus XML Processor enables you to create cross-platform programs.