java.util.Iterator<NamespaceBinding>public class NamespaceIterator extends java.lang.Object implements java.util.Iterator<NamespaceBinding>
NodeInfo.getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding[]).
The result does not include the XML namespace.
| Modifier and Type | Field | Description |
|---|---|---|
(package private) java.util.HashSet<java.lang.String> |
undeclaredPrefixes |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
static java.util.Iterator<NamespaceBinding> |
iterateNamespaces(NodeInfo element) |
Factory method: create an iterator over the in-scope namespace codes for an element
|
NamespaceBinding |
next() |
|
void |
remove() |
|
static void |
sendNamespaces(NodeInfo element,
Receiver receiver) |
Send all the in-scope namespaces for a node (except the XML namespace) to a specified receiver
|
public static java.util.Iterator<NamespaceBinding> iterateNamespaces(NodeInfo element)
element - the element (or other node) whose in-scope namespaces are required. If this
is not an element, the result will be an empty iteratorpublic static void sendNamespaces(NodeInfo element, Receiver receiver) throws XPathException
element - the element in question (the method does nothing if this is not an element)receiver - the receiver to which the namespaces are notifiedXPathExceptionpublic boolean hasNext()
hasNext in interface java.util.Iterator<NamespaceBinding>public NamespaceBinding next()
next in interface java.util.Iterator<NamespaceBinding>public void remove()
remove in interface java.util.Iterator<NamespaceBinding>