This document contains installation instructions and other notes that may help you use this software library more effectively. For more information, see the JAXP Reference Implementation Project web site.
Note:
If you are reading this page online, this is the most current
version of the release notes. If this page was downloaded as part
of the release bundle, please see the JAXP Reference Implementation Project web site.
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.
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.
The following sections summarize the significant changes introduced in JAXP 1.4. For additional details, please see the appropriate JavaDoc.
Changed DATATYPEFACTORY_IMPLEMENTATION_CLASS
to
com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl
.
Added newInstance(String,
ClassLoader)
method.
Return false
if the argument to
equals()
is null
instead of throwing NullPointerException
.
Added the javax.xml.stream package to support StAX. The package consists of the following interfaces:
EventFilter
Location
StreamFilter
XMLEventReader
XMLEventWriter
XMLReporter
XMLResolver
XMLStreamConstants
XMLStreamReader
XMLStreamWriter
Classes:
XMLEventFactory
XMLInputFactory
XMLOutputFactory
Exceptions:
XMLStreamException
And errors:
FactoryConfigurationError
Added the javax.xml.stream.events package to support StAX. The package consists of the following interfaces:
Attribute
Characters
Comment
DTD
EndDocument
EndElement
EntityDeclaration
EntityReference
Namespace
NotationDeclaration
ProcessingInstruction
StartDocument
StartElement
XMLEvent
Clarified the semantics of getOutputProperty()
with respect to properties
that have not been set explicitly with either setOutputProperty()
or xsl:output
in the stylesheet.
Clarified that the features set on the SchemaFactory
should be passed to the
Validator
created with newValidator()
.
Clarified that the features set on the SchemaFactory
should be passed to the
ValidatorHandler
created with
newValidatorHandler()
.
Added newInstance(String,
ClassLoader)
method.
Clarified that the features set on the SchemaFactory
should be passed to the
Schema
s created with newSchema()
. Included a note to implementors
and developers about the subtleties associated with newSchema()
in this context.
Clarified that the inputs to newSchema(Source[])
are expected to be XML
documents or elements.
Updated documentation of setFeature()
to clarify that the features set
on the SchemaFactory
should be
passed to the Schema
s created with
this factory and by extension to the Validator
and ValidatorHandler
s created from that Schema
.
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.
Extended the semantics of getElementTypeInfo()
, allowing it to be called
from either the startElement event or the endElement event. This allows the
API to support W3C XML Schema union types more usefully.
When W3C XML Schema validation is being performed, in the case
where an element has a union type, the TypeInfo
returned by a call to getElementTypeInfo()
from the startElement
event will be the union type. The TypeInfo
returned by a call from the endElement
event will be the actual member type used to validate the
element.