title: Dynamic list in SOAPUI XML response
body: <p><br>
  I'm mocking a soap service in SOAPUI. I have a list of objects in my context. I'd like to loop over this list to build the XML response.<br>
  <br>
  Something like this :<br>
  <br>
  Response Script :
  <code></p>
  
  <pre><code>requestContext.list = [ new Person("name0"), new Person("name1") ]
  </code></pre>
  
  <p></code>
  Response XML :
  <code></p>
  
  <pre><code>   &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://mywebservice"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;ws:MyResponse&gt;
           &lt;ws:List&gt;
              &lt;!-- Loop somehow over ${list} --&gt;
              &lt;ws:Person&gt;
                 &lt;ws:Name&gt;${list[i].name}&lt;/ws:Name&gt;
              &lt;/ws:Person&gt;
           &lt;/ws:List&gt;
        &lt;/ws:MyResponse&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p></code></p>
  
  <p>Any idea how i could do something like this ?</p>
  
  <p>Thanks</p>