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.NamespaceContext
public String getPrefix(String pNamespaceURI)
getPrefix
in interface javax.xml.namespace.NamespaceContext
public Iterator getPrefixes(String pNamespaceURI)
getPrefixes
in interface javax.xml.namespace.NamespaceContext
public String[] getDeclaredPrefixes()
NamespacePrefixList
getDeclaredPrefixes
in interface NamespacePrefixList
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.