title: How do I parse XML results into an array?
body: <p>I'm new to Python and need some help. The web hasn't been very helpful. Simply put, I have a web response that looks like this:</p>
  
  <pre><code>&lt;html&gt;
    &lt;field&gt;123&lt;/field&gt;
    &lt;field&gt;456&lt;/field&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I'm trying to do is take all of the contents from the field elements into an array that I can index. The end result would look like this:</p>
  
  <pre><code>myArray[0] = 123
  myArray[1] = 456
  </code></pre>
  
  <p>and so on...</p>
  
  <p>What I'm going to end up doing with this is running a random number generator to randomly pick one of the elements in this array and retrieve its value.</p>
  
  <p>Is this possible? I can't seem to find a straight answer on the web, so I feel like I might be asking for the wrong thing.</p>