title: Groovy XmlSlurper: Find elements in XML structure
body: <p>Let's say there is the following XML structure:</p>
  
  <pre><code>&lt;Data&gt;
      &lt;DataFieldText&gt;
          &lt;DataFieldName&gt;Field #1&lt;/DataFieldName&gt;
          &lt;DataFieldValue&gt;1&lt;/DataFieldValue&gt;
      &lt;/DataFieldText&gt;
      &lt;DataFieldText&gt;
          &lt;DataFieldName&gt;Field #2&lt;/DataFieldName&gt;
          &lt;DataFieldValue&gt;2&lt;/DataFieldValue&gt;
      &lt;/DataFieldText&gt;
      &lt;DataFieldText&gt;
          &lt;DataFieldName&gt;Field #3&lt;/DataFieldName&gt;
          &lt;DataFieldValue&gt;3&lt;/DataFieldValue&gt;
      &lt;/DataFieldText&gt;
  &lt;/Data&gt;
  </code></pre>
  
  <p>Using Groovy's <code>XmlSlurper</code> I need to do the following:</p>
  
  <p>Beginning from <code>Data</code> find that element which contains the value <code>Field #1</code>in the <code>&lt;DataFieldName&gt;</code> element. If found then get the value of the corresponding <code>&lt;DataFieldValue&gt;</code> which belongs to the same level.</p>