title: "Dynamic" template - Is it possible to change the actual templete while processing it?
body: <p>Suppose I have the following xml template:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;myXML&gt;
      &lt;params&gt;
        &lt;param name="a""&gt;${A}&lt;/param&gt;
        &lt;param name="b"&gt;${B}&lt;/param&gt;
        &lt;param name="c"&gt;${C}&lt;/param&gt;
      &lt;/params&gt;
  &lt;/myXML&gt;
  </code></pre>
  
  <p>I am looking for a way to change the template's cotnent based on a certing condition, for example:</p>
  
  <pre><code>if (&lt;certain condition is true&gt;)
  {
       remove the line &lt;param name="c"&gt;${C}&lt;/param&gt; from the template
  }
  </code></pre>
  
  <p>Please note: I am not looking to fill the value of ${C} but to remove this line from the template altogether. Sort of making the template "dynamic" rather than "static".</p>
  
  <p>Of course I can hold two different tremplates and load the right one based on the condition but prefer the approach I described above if possible.</p>