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