title: Getting the content of any specific tag anywhere in an XML file with Python
body: <p>I have an XML file like this:</p>
  <pre><code>&lt;file&gt;
    &lt;dict&gt;
      &lt;element&gt;
        &lt;s&gt;text&lt;/s&gt;
        &lt;i&gt;56&lt;/i&gt;
  &lt;s&gt;foobar&lt;/s&gt;   &lt;--- strange formatting issues cause it to be below the root tag
        ... more tags like these
  
      &lt;/element&gt;
      ...more &lt;element&gt;s like above
    &lt;/dict&gt;
  &lt;/file&gt;
  </code></pre>
  <p>How can I get the content between all <code>&lt;s&gt;</code> and <code>&lt;/s&gt;</code> tags in the entire file, no matter where the tags are? I'm running Python 3.10.4 and I prefer using the builtin <code>xml</code> module. (If I need to use a different one, I'd be OK with that!)</p>
  <p>(Also, assume I don't want to fix the <code>&lt;s&gt;foobar&lt;\s&gt;</code> issue.)</p>
  <p>Output I want:</p>
  <pre><code>text
  foobar
  ...more content from between &lt;s&gt;&lt;/s&gt; tags
  </code></pre>