DefaultNamespaceContext implements a Jaxen NamespaceContext
such that a context node is used to determine the current XPath namespace
prefixes and namespace URIs available.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static DefaultNamespaceContext | |
| public String | translateNamespacePrefixToUri(String
the namespace prefix to resolve prefix)Implements org. |
| element | back to summary |
|---|---|
| private final Element element | |
| DefaultNamespaceContext | back to summary |
|---|---|
| public DefaultNamespaceContext(Element element) | |
| create | back to summary |
|---|---|
| public static DefaultNamespaceContext create(Object node) | |
| translateNamespacePrefixToUri | back to summary |
|---|---|
| public String translateNamespacePrefixToUri(String prefix) Implements org. Doc from org. Translate the provided namespace prefix into the matching bound namespace URI. In XPath, there is no such thing as a 'default namespace'. The empty prefix always resolves to the empty namespace URI. This method should return null for the empty prefix. Similarly, the prefix "xml" always resolves to the URI "http://www.w3.org/XML/1998/namespace". | |