GPath is a path expression language integrated into Groovy which allows parts of nested structured data to be identified. In this sense, it has similar aims and scope as XPath does for XML. The two main places where you use GPath expressions is when dealing with nested POJOs or when dealing with XML.
As an example, you can specify a path to an object or element of interest:
For XML, you can also specify attributes, e.g.:
Accessing element as property
Explore the DOM use children() and parent()
* Groovy Doc - Processing XML
* [ In Action ] Dynamic object orientation - Using power features