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 | Method and 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() |
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 notifiedXPathException
- if a failure is reported by the downstream Receiverpublic boolean hasNext()
hasNext
in interface java.util.Iterator<NamespaceBinding>
public NamespaceBinding next()
next
in interface java.util.Iterator<NamespaceBinding>
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.