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.
Makes NodeList iterable by returning a read-only Iterator which traverses over each Node.
nodeList
- a NodeList Transforms the element to its text equivalent.
(The resulting string does not contain a xml declaration. Use XmlUtil.serialize(element)
if you need the declaration.)
element
- the element to serialize