Reads an XML file into maps and lists: elements with only text become strings, attributes use the key @name, repeated elements become lists. Example: def pom = xmlRead file: 'pom.xml'; echo pom.version