Java API for XML Processing Release Notes

Specification Version: 1.4
Reference Implementation Version: 1.4.0

This document contains installation instructions and other notes that may help you use this software library more effectively.

Contents

Feature Changes

An important technical change in JAXP 1.4 is the addition of the javax.xml.stream.* packages from StAX, the Streaming API for XML (JSR 173). With this addition, JAXP 1.4 now supports validation and transformation of documents with the streaming API. Since JAXP 1.4 is integrated in Java SE, StAX support is transparent on any system running the latest Java platform.

gMonth

JAXP 1.4 changed its XML Schema validation logic for gMonth to reflect the changes made in the XML Schema 1.0 Specification Errata: E2-12 Error. Specifically, it will now reject gMonths with a lexical representation of "--MM--" as invalid.

JAXP Specification Changes since 1.3

The following sections summarize the significant changes introduced in JAXP 1.4. For additional details, please see the appropriate JavaDoc.

1. Package javax.xml.datatype

1.1. Class DatatypeFactory

1.2. Class Duration

1.3. Class XMLGregorianCalendar

2. Package javax.xml.parsers

2.1. Class DocumentBuilderFactory

2.2. Class SAXParserFactory

3. Package javax.xml.stream

      Added the javax.xml.stream package to support StAX. The package consists of the following interfaces:

      Classes:

      Exceptions:

      And errors:

4. Package javax.xml.stream.events

      Added the javax.xml.stream.events package to support StAX. The package consists of the following interfaces:

4.1. Package javax.xml.stream.util

      Added the javax.xml.stream.util package to support StAX. The package consists of the following interfaces:

      And classes:

5. Package javax.xml.transform

5.1. Class ErrorListener

5.2. Class Transformer

5.3. Class TransformerFactory

5.4. Package javax.xml.transform.stax

      Added the javax.xml.transform.stax package to support StAX. The package consists of the following interfaces:

      And classes:

6. Package javax.xml.validation

6.1. Class Schema

6.2. Class SchemaFactory

6.3. Class SchemaFactoryLoader

The SchemaFactoryLoader class was created during the JAXP 1.3 development process. Shortly before JAXP 1.3 was finished, the factory mechanisms associated with validation were changed, and this class was removed. Unfortunately, the file was left in a repository and it slipped into the Java Platform, Standard Edition 5.0 API Specification.

Since the class can neither be added to JAXP 1.3 nor removed from the Java 5.0 API Specification due to backwards compatibility issues, it is being added to JAXP 1.4. The class is harmless and should not be used. It is being added simply to avoid the confusion that arises when developers notice that it's defined in the platform but not in JAXP.

Do not use this class.

6.4. Class TypeInfoProvider

6.5. Class Validator

7. Package javax.xml.xpath

7.1. Class XPath

7.2. Class XPathFactory


Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved.