public class XmlGroovyMethods extends Object
Constructor | Description |
---|---|
XmlGroovyMethods() |
Modifier and Type | Method | 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