Created
October 26, 2012 09:27
-
-
Save dagvadorj/3957831 to your computer and use it in GitHub Desktop.
Groovy script example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def a = "Dagvadorj" | |
print a | |
import java.util.ArrayList | |
import java.util.List | |
List b = new ArrayList<String>() | |
b.add("Copenhagen") | |
b.add("Hague") | |
for (c in b) { | |
println c | |
} | |
def students = new XmlParser().parse("D:\\Tax\\students.xml") | |
students.student.each { | |
println it.firstName.text() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment