title: Ant & how to parse a properties file to echo back the values
body: <p>I have a properties file that I want to echo out the values</p>
  
  <pre><code>&lt;HSMKeys&gt;
  &lt;Key domain="default" value="TestA" /&gt;
  &lt;Key domain="fixed" value="TestB" /&gt; 
  &lt;/HSMKeys&gt;
  </code></pre>
  
  <p>as</p>
  
  <pre><code>[echo] domain=default value=TestA
  [echo] domain=fixed value=TestB
  </code></pre>
  
  <p>How can I do this, ie loop over the properties file and have the two variables that would be in the echo.</p>
  
  <p>I have tried the following</p>
  
  <pre><code>&lt;for list="${HSMKeys.Key.domain}" param="domain"&gt;
  &lt;sequential&gt;
  &lt;echo&gt;domain=@{domain}&lt;/echo&gt;
  &lt;/sequential&gt;
  &lt;/for&gt;
  </code></pre>
  
  <p>ie I can only get at one attribute value at a time, not both at once.</p>
  
  <p>Thanks.</p>