title: Ant xmlproperty task. What happens when there is more than one tag with the same name?
body: <p>I am trying to follow a large ant buildfile that I have been given, and I am having trouble understanding the functionality of xmlproperty in this case.
  Consider this xml file, example.xml.</p>
  
  <pre><code>&lt;main&gt;
    &lt;tagList&gt;
      &lt;tag&gt;
        &lt;file&gt;file1&lt;/file&gt;
        &lt;machine&gt;machine1&lt;/machine&gt;
      &lt;/tag&gt;
      &lt;tag&gt;
        &lt;file&gt;file2&lt;/file&gt;
        &lt;machine&gt;machine2&lt;/machine&gt;
      &lt;/tag&gt;
    &lt;/tagList&gt;
  &lt;/main&gt;
  </code></pre>
  
  <p>In the buildfile, there is a task which can be simplified to the following for this example:</p>
  
  <pre><code>&lt;xmlproperty file="example.xml" prefix="PREFIX" /&gt;
  </code></pre>
  
  <p>As I understand it, if there was only one <code>&lt;tag&gt;</code> element, I could get the contents of <code>&lt;file&gt;</code> with <code>${PREFIX.main.tagList.tag.file}</code>
  because it is roughly equivalent to writing this:</p>
  
  <pre><code>&lt;property name="PREFIX.main.tagList.tag.file" value="file1"/&gt;
  </code></pre>
  
  <p>But as there are two <code>&lt;tag&gt;</code>s, what is the value of <code>${PREFIX.main.tagList.tag.file}</code> in this case? If it is some sort of list, how do I iterate through both <code>&lt;file&gt;</code> values?                  </p>
  
  <p>I am using ant 1.6.2.</p>