public class XMLNamespaceResolver extends Object implements NamespaceContext
XMLNamespaceResolver is a namespace context implementation that allows rules to qualify their XPath
queries using simple prefixes. Mapping:
cm points to urn:ec.europa.eu:taxud:directtax:aeoi:common:v1aeoi points to urn:ec.europa.eu:taxud:directtax:aeoi:v1| Constructor | Description |
|---|---|
XMLNamespaceResolver(Map<String,String> namespaces) |
constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getNamespaceURI(String prefix) |
Return namespaces based on prefix.
|
String |
getPrefix(String namespaceURI) |
Return prefix based on namespaces.
|
Iterator |
getPrefixes(String namespaceURI) |
Return prefixes based on namespacesURI.
|
public String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextprefix - The prefixpublic String getPrefix(String namespaceURI)
getPrefix in interface NamespaceContextnamespaceURI - The namespacespublic Iterator getPrefixes(String namespaceURI)
getPrefixes in interface NamespaceContextnamespaceURI - The namespacesCopyright © 2025. All rights reserved.