XML Parsing with Groovy
Groovy is a powerful, optionally typed and dynamic language and in this post i will show how easily you can parse XML by using a few lines of code. So, let's do it.
The XML used for this example contains a list of consumers:
Let's assume that you want to check if a consumer exists by matching an email:
So, just parse XML and return
true if the consumer's email exists in the XML: