Package org.apache.groovy.xml.extensions
Class XmlExtensions
java.lang.Object
org.apache.groovy.xml.extensions.XmlExtensions
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.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
XmlExtensionspublic XmlExtensions()
 
- 
- 
Method Details- 
iteratorMakes NodeList iterable by returning a read-only Iterator which traverses over each Node.- Parameters:
- nodeList- a NodeList
- Returns:
- an Iterator for a NodeList
- Since:
- 1.0
 
- 
serializeTransforms the element to its text equivalent. (The resulting string does not contain a xml declaration. UseXmlUtil.serialize(element)if you need the declaration.)- Parameters:
- element- the element to serialize
- Returns:
- the string representation of the element
- Since:
- 2.1
 
 
-