public final class NodeNamespaceContext extends Object implements NamespacePrefixList, Serializable
NamespaceContext, which is based on a DOM node.| Modifier and Type | Method and Description |
|---|---|
String[] |
getDeclaredPrefixes()
Returns the list of currently defined namespace prefixes.
|
static NodeNamespaceContext |
getNamespaceContext(Node pNode) |
static String |
getNamespacePrefix(Element el,
String ns) |
static String |
getNamespaceURI(Element el,
String pfx) |
String |
getNamespaceURI(String pPrefix) |
String |
getPrefix(String pNamespaceURI) |
Iterator<String> |
getPrefixes(String pNamespaceURI) |
public static NodeNamespaceContext getNamespaceContext(Node pNode)
public String[] getDeclaredPrefixes()
NamespacePrefixListgetDeclaredPrefixes in interface NamespacePrefixListpublic String getNamespaceURI(String pPrefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String pNamespaceURI)
getPrefix in interface NamespaceContextpublic Iterator<String> getPrefixes(String pNamespaceURI)
getPrefixes in interface NamespaceContextCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.