|
Groovy 2.2.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.runtime.XmlGroovyMethods
public class XmlGroovyMethods extends 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 Iterator
|
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. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Method Detail |
|---|
public static Iterator iterator(NodeList nodeList)
nodeList - a NodeList
public static String serialize(Element element)
XmlUtil.serialize(element) if you need the declaration.)
element - the element to serialize
Copyright © 2003-2013 The Codehaus. All rights reserved.