public class NamespaceIterator extends Object implements Iterator<NamespaceBinding>
NodeInfo.getDeclaredNamespaces(net.sf.saxon.om.NamespaceBinding[]).
The result does not include the XML namespace.
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
static 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 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 notifiedXPathException - if a failure is reported by the downstream Receiverpublic boolean hasNext()
hasNext in interface Iterator<NamespaceBinding>public NamespaceBinding next()
next in interface Iterator<NamespaceBinding>public void remove()
remove in interface Iterator<NamespaceBinding>Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.