|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.runtime.XmlGroovyMethods
public class XmlGroovyMethods extends java.lang.Object
This class defines all the new XML-related groovy methods which enhance the normal JDK XML classes when inside the Groovy environment. Static methods are used with the first parameter the destination class.
| Method Summary | |
|---|---|
static java.util.Iterator
|
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. |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Method Detail |
|---|
public static java.util.Iterator iterator(org.w3c.dom.NodeList nodeList)
nodeList - a NodeList
public static java.lang.String serialize(org.w3c.dom.Element element)
element - the element to serialize
Groovy Documentation