title: XmlSlurper: How to change the text of a dynamic node
body: <pre><code>&lt;Messdaten&gt;
    &lt;EL_NR&gt;NAYP99&lt;/EL_NR&gt;
    &lt;EL_NR_Original/&gt;
    &lt;Erfassungsdatum&gt;2012-12-12 11:58:54.000&lt;/Erfassungsdatum&gt;
    &lt;Massnahme&gt;Lot_Hold&lt;/Massnahme&gt;
    &lt;Anzahl_x0020_R&gt;50&lt;/Anzahl_x0020_R&gt;
    &lt;FEHLER&gt;OK&lt;/FEHLER&gt;
    &lt;SEQ&gt;72&lt;/SEQ&gt;
  &lt;/Messdaten&gt;
  </code></pre>
  
  <p>That is my XML and i want to change the value of node 'Anzahl_x0020_R'. The problem is, at runtime i don't know the exact name. I only know that the node to change will start with 'Anzahl'. So i did this:</p>
  
  <pre><code>messdatenXML.childNodes().each { merkmal -&gt;
      if (merkmal.name.contains('Anzahl')) {
          messdatenXML.merkmal = "my_new_value";
      }
  }
  </code></pre>
  
  <p>The thing is, it doesn't work, the value will stay the same. If i do:</p>
  
  <pre><code>messdatenXML.Anzahl_x0020_R = "my_new_value"
  </code></pre>
  
  <p>it will work but as i said before, i don't know the exact name at runtime.</p>