title: Iterate all children with a given name using GPathResult returned by XmlSlurper
body: <p>I've parsed some html using XmlSlurper. Now I want to iterate all the children with a given element name.                       </p>
  
  <p>What I've got now is the following code snippet</p>
  
  <pre class="lang-groovy prettyprint-override"><code>html.'**'.findAll { it.name() == 'a' }.each {
    println it
  }
  </code></pre>
  
  <p>It works but just isn't groovy enough. I would like to simply write something like this</p>
  
  <pre class="lang-groovy prettyprint-override"><code>html.'**'.a.each {
    println it
  }
  </code></pre>
  
  <p>If I do it this way, GPath complains that there is no property with name 'a'. Any idea if there is an easy syntax to formulate this iteration?</p>