






















|
| |
The Xerces2 Java Parser 2.1.0 contains a partial implementation of
the W3C Document Object Model Level 3.
The DOM Level 3
specification is at the stage of Working Draft, which represents
work in progress and thus may be updated, replaced, or obsoleted by
other documents at any time.
This implementation is experimental: it should not be considered as complete or correct.
|
| |
The Xerces2 Java Parser 2.1.0 contains an implementation of a subset of the
W3C DOM Level 3 as specified in
Core,
Load and Save, and
Abstract Schemas [deprecated].
The DOM Level 3 methods for which implementation is not provide will throw DOMException NOT_SUPPORTED_ERR exception.
 | To find out how to access DOM Level 3 functionality, please refer to the FAQ. |
|
 |  |  |  | Implementation of DOM Level 3 Core |  |  |  |  |
| |
Most of the DOM Level 3 functionality is implemented, including:
- DOMBuilder filter -- if an application provides
a filter, the parser will call this filter at the completion of the construction of each
Element node.
- DOMWriter filter -- if an application provides
a filter, the serializer will call this filter before serializing each
Node .
- Document normalizeDocument -- this method normalizes Text nodes, makes the document "namespace wellformed" by adding missing namespace declaration attributes and adding or changing namespace prefixes, updates the replacement tree of EntityReference nodes, normalizes attribute values, etc. The actual result depends on the features being set and governing what operations actually take place. The methods
setNormalizationFeature, getNormalizationFeature, canSetNormalizationFeature are also supported.
- Node compareTreePosition -- compares a node with this node with regard to their position in the tree and according to the document order.
- Node
lookupNamespaceURI,
lookupNamespacePrefix,
isDefaultNamespace -- performs different namespace URI/prefix lookups.
- DOMError, DOMErrorHandler, DOMLocator, UserDataHandler -- users can register error and user data handlers.
The normalization features supported are:
- canonical-form [false]
- cdata-sections [true/false]
- comments [true/false]
- entities [true/false]
- infoset [false]
- namespace-declarations [true]
- normalize-characters [false]
- split-cdata-sections [true/false]
- validate-if-schema [false]
- whitespace-in-element-content [true]
- datatype-normalization [true/false] -- the XML Schema normalized values will not be exposed via the DOM even if the value of this feature is set to true (to be implemented).
- discard-default-content [true/false] -- the removal of default content depends on
isSpecified flag.
- validate [true/false] -- revalidation is supported only against XML Schemas. For more information, please refer to How to revalidate DOM in memory?.
|
|
|