This class implements the DOM2 {@link Node} interface toallow Namespace declarations to be included in the result set of an XPath selectNodes operation, even though DOM2 does not model Namespace declarations as separate nodes.
While all of the methods are implemented with reasonable defaults, there will be some unexpected surprises, so users are advised to test for NamespaceNodes and filter them out from the result sets as early as possible:
All attempts to modify a NamespaceNode will fail with a {@link DOMException} ({@link DOMException#NO_MODIFICATION_ALLOWED_ERR}).
This class has only protected constructors, so that it can be instantiated only by {@link DocumentNavigator}.
@author David Megginson @see DocumentNavigator
|
|
|
|
|
|