title: Extracting text from XML using python
body: <p>I have this example xml file </p>
  
  <pre><code>&lt;page&gt;
    &lt;title&gt;Chapter 1&lt;/title&gt;
    &lt;content&gt;Welcome to Chapter 1&lt;/content&gt;
  &lt;/page&gt;
  &lt;page&gt;
   &lt;title&gt;Chapter 2&lt;/title&gt;
   &lt;content&gt;Welcome to Chapter 2&lt;/content&gt;
  &lt;/page&gt;
  </code></pre>
  
  <p>I like to extract the contents of title tags and content tags. </p>
  
  <p>Which method is good to extract the data, using pattern matching or using xml module. Or is there any better way to extract the data. </p>