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

FunctionOverview
DOMAnalyze an XML document to generate a DOM tree. Also, manipulates the generated DOM tree.
SAXAnalyze an XML document to generate an SAX event. Also, handles the generated event.
StAXParses 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.
XSLTReceives an XML document as input, transforms the document based on a stylesheet, and then outputs another XML document, an HTML document, or text.
XPathEvaluates an XPath expression.
ValidationValidates an XML document based on the schema document.
DatatypeProcesses 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.