public 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(org.w3c.dom.Node pNode) |
static String |
getNamespacePrefix(org.w3c.dom.Element el,
String ns) |
static String |
getNamespaceURI(org.w3c.dom.Element el,
String pfx) |
String |
getNamespaceURI(String pPrefix) |
String |
getPrefix(String pNamespaceURI) |
Iterator |
getPrefixes(String pNamespaceURI) |
public static NodeNamespaceContext getNamespaceContext(org.w3c.dom.Node pNode)
public String getNamespaceURI(String pPrefix)
getNamespaceURI in interface javax.xml.namespace.NamespaceContextpublic String getPrefix(String pNamespaceURI)
getPrefix in interface javax.xml.namespace.NamespaceContextpublic Iterator getPrefixes(String pNamespaceURI)
getPrefixes in interface javax.xml.namespace.NamespaceContextpublic String[] getDeclaredPrefixes()
NamespacePrefixListgetDeclaredPrefixes in interface NamespacePrefixListCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.