I've always wanted to parse xml stuff in Java with minimal of code, but google gave me solutions that were either complex or very verbose.Then I looked at groovy and found that it can give me all the data that I needed from an XML in just a couple of lines.Now, once I've parsed an XML in groovy I wanted to integrate the same in a Java Code.For that, the ScriptEngine API of Java comes to rescue. It allows to run a scripted code within Java, e.g. one can run JavaScript, Groovy, etc. within Java. This helps in using best of all the worlds where ever required.