title: Iterating an XML file and extracting data from it
body: <p>I have this XML file: </p>
  
  <pre><code>&lt;movie id = 0&gt; 
    &lt;Movie_name&gt;The Shawshank Redemption   &lt;/Movie_name&gt; 
    &lt;Address&gt;http://www.imdb.com/title/tt0111161/
    &lt;/Address&gt; 
    &lt;year&gt;1994  &lt;/year&gt; 
    &lt;stars&gt;Tim Robbins  Morgan Freeman  Bob Gunton    &lt;/stars&gt; 
    &lt;plot&gt; plot...
    &lt;/plot&gt; 
    &lt;keywords&gt;Reviews, Showtimes&lt;/keywords&gt;
  &lt;/movie&gt;
  
  &lt;movie id = 1&gt; 
    &lt;Movie_name&gt;Inglourious Basterds   &lt;/Movie_name&gt; 
    &lt;Address&gt;http://www.imdb.com/title/tt0361748/
    &lt;/Address&gt; 
    &lt;year&gt;2009  &lt;/year&gt; 
    &lt;stars&gt;Brad Pitt  M&amp;#xE9;lanie Laurent  Christoph Waltz    &lt;/stars&gt; 
    &lt;plot&gt;plot/... 
    &lt;/plot&gt; 
    &lt;keywords&gt;Reviews, credits  &lt;/keywords&gt;
  &lt;/movie&gt;
  </code></pre>
  
  <p>How can iterate the file extracting for each movie its speciffic data? I mean for movie 0: its name, address, year and so on.</p>
  
  <p>The input file structure is mandatory, so data extraction can be done while looping.</p>
  
  <p>Much thanks.</p>