public class XmlGroovyMethods
extends java.lang.Object
| Constructor | Description |
|---|---|
XmlGroovyMethods() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Iterator<org.w3c.dom.Node> |
iterator(org.w3c.dom.NodeList nodeList) |
Makes NodeList iterable by returning a read-only Iterator which traverses
over each Node.
|
static java.lang.String |
serialize(org.w3c.dom.Element element) |
Transforms the element to its text equivalent.
|
public static java.util.Iterator<org.w3c.dom.Node> iterator(org.w3c.dom.NodeList nodeList)
nodeList - a NodeListpublic static java.lang.String serialize(org.w3c.dom.Element element)
XmlUtil.serialize(element) if you need the declaration.)element - the element to serialize